System.Web.UI.WebControls.DataListItemCollection Class

Represents the collection of System.Web.UI.WebControls.DataListItem objects in the System.Web.UI.WebControls.DataList control. This class cannot be inherited.

See Also: DataListItemCollection Members

Syntax

public sealed class DataListItemCollection : ICollection

Remarks

The System.Web.UI.WebControls.DataListItemCollection class represents a collection of System.Web.UI.WebControls.DataListItem objects, which in turn represent the data items in a System.Web.UI.WebControls.DataList control. To programmatically retrieve System.Web.UI.WebControls.DataListItem objects from a System.Web.UI.WebControls.DataList control, use one of the following methods:

The DataListItemCollection.Count property specifies the total number of items in the collection and is commonly used to determine the upper bound of the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0