System.Web.UI.WebControls Namespace DetailsView Class
.NET Framework version 2.0
Returns the number of data items in the data source bound to a DetailsView control.
Script |
[ integer intCount = ] DetailsView.DataItemCount |
This property can only be used programmatically; it cannot be set when declaring the control.
intCount |
Integer specifying the number of data items in the data source bound to the DetailsView control. |
The property is read only with no default value.
Use the DataItemCount property to programmatically determine the number of data items contained in the data source. This property contains the same value as the PageCount property, which returns the number of pages required to display the rows in the DetailsView control.
DetailsView Members DataItem DataItemIndex