System.Web.UI.WebControls.DetailsView.PageIndex Property

Gets or sets the index of the displayed record.

Syntax

[System.ComponentModel.DefaultValue(0)]
[System.ComponentModel.Bindable(true, System.ComponentModel.BindingDirection.OneWay)]
public virtual int PageIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the paging feature is enabled (when the DetailsView.AllowPaging property is set to true), use the DetailsView.PageIndex property to determine the index of the currently displayed record. You can also use this property to programmatically change the displayed record.

Note:

When the paging feature is enabled, you can also use this property to determine the page number of the record displayed; however, be aware that this property is zero-based.

To determine the total number of items in the data source, use the DetailsView.PageCount property.

Requirements

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