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
Available since 1.1
Return to top