System.Web.UI.WebControls Namespace DetailsView Class
.NET Framework version 2.0
Returns the collection of DetailsViewRow objects that represent the data rows in a DetailsView control.
Script |
[ DetailsViewRowCollection variable = ] DetailsView.Rows |
The property is read only with no default value.
The Rows collection provides a way to programmatically obtain information about each data-bound row in a DetailsView control.
When a data source is bound to a DetailsView, the Rows collection is populated with one DetailsViewRow object for each record ( or row of data ) in the data source.
NOTE: Only data rows ( rows bound to the data source ) are contained in the Rows collection. The header, footer, and pager rows are not included.
The Rows collection does not provide any methods to add or remove rows in the collection. However, you can control the contents of a row by providing a handler for the ItemCreated event.
DetailsView Members DetailsViewRow