Gets a DataKey object that represents the primary key of the displayed record.
Assembly: System.Web (in System.Web.dll)
When the DataKeyNames property is set, the FormView control automatically creates a DataKey object that contains the key/value pairs of the field or fields listed in the DataKeyNames property for the current record. Use the property to get this DataKey object. This property is commonly used to obtain the keys and their corresponding values for the fields specified in the DataKeyNames property.
Available since 2.0