System.Web.UI.WebControls.DetailsViewRowCollection Class

Represents a collection of System.Web.UI.WebControls.DetailsViewRow objects in a System.Web.UI.WebControls.DetailsView control.

See Also: DetailsViewRowCollection Members

Syntax

public class DetailsViewRowCollection : ICollection

Remarks

The System.Web.UI.WebControls.DetailsViewRowCollection class is used to store and manage a collection of System.Web.UI.WebControls.DetailsViewRow objects in a System.Web.UI.WebControls.DetailsView control. Each row in a System.Web.UI.WebControls.DetailsView control is represented by a System.Web.UI.WebControls.DetailsViewRow object. The System.Web.UI.WebControls.DetailsView control uses the System.Web.UI.WebControls.DetailsViewRowCollection class for its DetailsView.Rows property.

Note:

The DetailsView.Rows property contains only the data rows. To access the header row, footer row, top pager row, and bottom pager row, use the DetailsView.HeaderRow, DetailsView.FooterRow, DetailsView.TopPagerRow, and DetailsView.BottomPagerRow properties, respectively.

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

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