System.Web.UI.WebControls.DataKeyArray Class

Represents a collection of System.Web.UI.WebControls.DataKey objects. This class cannot be inherited.

See Also: DataKeyArray Members

Syntax

public sealed class DataKeyArray : ICollection, System.Web.UI.IStateManager

Remarks

The System.Web.UI.WebControls.DataKeyArray class is used to store and manage a collection of System.Web.UI.WebControls.DataKey objects. A System.Web.UI.WebControls.DataKey object represents the primary key of a record in a data-bound control. In general, data-bound controls that display multiple records (such as the System.Web.UI.WebControls.GridView control) use a System.Web.UI.WebControls.DataKeyArray object to store the System.Web.UI.WebControls.DataKey objects for the records displayed in the control.

The System.Web.UI.WebControls.DataKeyArray class supports several ways to access the items in the collection:

To determine the total number of items in the collection, use the DataKeyArray.Count property.

Requirements

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