Export (0) Print
Expand All

BaseDataListDesigner.DataKeyField Property

Gets or sets the value of the data key field of the associated control.

Namespace:  System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

public string DataKeyField { get; set; }

Property Value

Type: System.String
The DataKeyField value of the associated control.

The DataKeyField property provides access from the designer to the DataKeyField property of the associated control that is derived from the BaseDataList class. The DataKeyField indicates the primary key of the data source that is bound to the associated control.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft