asp.net.ph

DetailsView.Rows Property

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.

Syntax


Script [ DetailsViewRowCollection variable = ] DetailsView.Rows

Property Value


variable Returns a DetailsViewRowCollection that represents the data rows in a DetailsView control.

The property is read only with no default value.

Remarks

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.

See Also

DetailsView Members   DetailsViewRow Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph