Tab

ASPxDataViewBase.PageIndex Property

Gets or sets the index of the currently selected page.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(0)]
public int PageIndex { get; set; }
<DefaultValue(0)>
Public Property PageIndex As Integer

Property Value

Type Default Description
Int32

0

An integer value that specifies the active page's index.

Remarks

Use the PageIndex property to switch between pages in code. The total number of pages is returned by the ASPxDataViewBase.PageCount property.

Setting the PageIndex property to a new value raises the ASPxDataViewBase.PageIndexChanging event and then, if the page has been changed, the ASPxDataViewBase.PageIndexChanged event.

NOTE

If the PageIndex<