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 FormView.DataKeyNames property is set, the System.Web.UI.WebControls.FormView control automatically creates a System.Web.UI.WebControls.DataKey object that contains the key/value pairs of the field or fields listed in the FormView.DataKeyNames property for the current record. Use the FormView.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 FormView.DataKeyNames property.
As a shortcut, you can also use the FormView.SelectedValue property to determine the value of the first key field listed in the FormView.DataKeyNames property.