Documentation for this section has not yet been entered.
When the GridView.DataKeyNames property of a System.Web.UI.WebControls.GridView control is set, use the GridViewDeleteEventArgs.Keys property (dictionary) to get the value of the primary key or keys of the row to delete.
To get the values of the non-key fields, use the GridViewDeleteEventArgs.Values property.
The GridViewDeleteEventArgs.Keys dictionary is automatically populated with the name/value pairs of the field or fields specified in the GridView.DataKeyNames property. If multiple fields form the primary key, a separate entry is added to the GridViewDeleteEventArgs.Keys dictionary for each key field.
To determine the name of a key field, use the DictionaryEntry.Key property of a DictionaryEntry object in the GridViewDeleteEventArgs.Keys dictionary. To determine the value of a key field, use the DictionaryEntry.Value property.