GridViewRowCollection Class
Assembly: System.Web (in system.web.dll)
The GridViewRowCollection class is used to store and manage a collection of GridViewRow objects in a GridView control. Each row in a GridView control is represented by a GridViewRow object. The GridView control stores all of its data rows in the Rows collection.
The GridViewRowCollection class supports several ways to access the items in the collection:
-
Use the Item indexer to directly retrieve a GridViewRow object at a specific zero-based index.
-
Use the GetEnumerator method to retrieve an enumerator that can be used to iterate through the collection.
-
Use the CopyTo method to copy the items in the collection into an System.Array object, which can then be used to access the items in the collection.
To determine the total number of items in the collection, use the Count property
- AspNetHostingPermission For using a GridViewRowCollection object in a hosted environment. Associated enumeration value: AspNetHostingPermissionLevel.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.