Gets a System.Web.UI.WebControls.DataKey object that represents the primary key of the displayed record.
Documentation for this section has not yet been entered.
When the DetailsView.DataKeyNames property is set, the System.Web.UI.WebControls.DetailsView control automatically creates a System.Web.UI.WebControls.DataKey object that represents the key field or fields for the current record. Use the DetailsView.DataKey property to get this System.Web.UI.WebControls.DataKey object. This property is commonly used to obtain the keys and their corresponding values for the fields specified in the DetailsView.DataKeyNames property.
As a shortcut, you can also use the DetailsView.SelectedValue property to determine the value of the first key field listed in the DetailsView.DataKeyNames property.