System.Web.UI.WebControls Namespace FormView Class
.NET Framework version 2.0
Returns the number of data items in the data source bound to a FormView control.
Script |
[ integer intCount = ] FormView.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 FormView 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 FormView control.
FormView Members DataItem DataItemIndex