System.Web.UI.WebControls.DataKey.Value Property

Gets the value of the key field at index 0 in the System.Web.UI.WebControls.DataKey object.

Syntax

public virtual object Value { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Instead of using the DataKey.Item(int) or the DataKey.Values property to retrieve a key field value from a System.Web.UI.WebControls.DataKey object, you can use the DataKey.Value property as a shortcut to determine the value of the key field at index 0 in the System.Web.UI.WebControls.DataKey object. This property is commonly used to determine the key field value of a record when the record has only one key field.

Note:

If the System.Web.UI.WebControls.DataKey object does not contain any key fields, null is returned.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0