System.Web.UI.WebControls.GridViewRowCollection Class

Represents a collection of System.Web.UI.WebControls.GridViewRow objects in a System.Web.UI.WebControls.GridView control.

See Also: GridViewRowCollection Members

Syntax

public class GridViewRowCollection : ICollection

Remarks

The System.Web.UI.WebControls.GridViewRowCollection class is used to store and manage a collection of System.Web.UI.WebControls.GridViewRow objects in a System.Web.UI.WebControls.GridView control. Each row in a System.Web.UI.WebControls.GridView control is represented by a System.Web.UI.WebControls.GridViewRow object. The System.Web.UI.WebControls.GridView control stores all of its data rows in the GridView.Rows collection.

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

To determine the total number of items in the collection, use the GridViewRowCollection.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