System.Web.UI.WebControls.DetailsView.DataItemCount Property

Gets the number of items in the underlying data source.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public int DataItemCount { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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.

Note:

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.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0