System.Web.UI.WebControls.FormView.PageCount Property

Gets the total number of pages required to display every record in the data source.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

When the paging feature is enabled (when the FormView.AllowPaging property is set to true), use the FormView.PageCount property to determine the total number of records in the underlying data source.

Note:

Because the System.Web.UI.WebControls.FormView control displays only one record at a time, this value corresponds to the total number of pages required to display every record in the data source. This value is not accurate until after data-binding occurs.

To determine the index of the current record from the underlying data source, use the FormView.PageIndex property.

Requirements

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