System.Web.UI.WebControls.DataGridItemCollection Class

Represents a collection of System.Web.UI.WebControls.DataGridItem objects in a System.Web.UI.WebControls.DataGrid control.

See Also: DataGridItemCollection Members


public class DataGridItemCollection : ICollection


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

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


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