Documentation for this section has not yet been entered.
When the paging feature is enabled (by setting the DetailsView.AllowPaging property to true), use the DetailsView.DataItemCount property to determine the total number of records in the underlying data source.
Because the System.Web.UI.WebControls.DetailsView control displays only one record at a time, this value also corresponds to the total number of pages required to display every record in the data source.
To determine the index of the current record from the underlying data source, use the DetailsView.DataItemIndex property.