System.Web.UI.WebControls.DetailsView.Rows Property

Gets a collection of System.Web.UI.WebControls.DetailsViewRow objects that represent the data rows in a System.Web.UI.WebControls.DetailsView control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual DetailsViewRowCollection Rows { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DetailsView.Rows property (collection) is used to store the data rows in a System.Web.UI.WebControls.DetailsView control. The System.Web.UI.WebControls.DetailsView control automatically populates the DetailsView.Rows collection by creating a System.Web.UI.WebControls.DetailsViewRow object for each record in the data source and then adding the object to the collection. This property is commonly used to access a specific row in the control or to iterate though the entire collection of rows.

Note:

Only data rows are stored in the DetailsView.Rows collection. The System.Web.UI.WebControls.DetailsViewRow objects that represent the header, footer, and pager rows are not included in the collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0