Documentation for this section has not yet been entered.
Use the FormView.DataKeyNames property to specify a comma-separated list of field names that represent the primary key of the data source. 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. The System.Web.UI.WebControls.DataKey object is then stored in the FormView.DataKey property.
You must set the FormView.DataKeyNames property for the built-in updating, deleting, and inserting features of the System.Web.UI.WebControls.FormView control to work.