DataGridItemCollection Class
Assembly: System.Web (in system.web.dll)
The DataGridItemCollection class represents a collection of DataGridItem objects, which in turn represent the data items in a DataGrid control. To programmatically retrieve DataGridItem objects from a DataGrid control, use one of following methods:
-
Use the indexer to get a single DataGridItem object from the collection, using array notation.
-
Use the CopyTo method to copy the contents of the collection to a System.Array, which can then be used to get items from the collection.
-
Use the GetEnumerator method to create a System.Collections.IEnumerator interface, which can then be used to get items from the collection.
The Count property specifies the total number of items in the collection and is commonly used to determine the upper bound of the collection.
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.