Back to Devexpress

ASPxDataViewBase.PageIndex Property

aspnet-devexpress-dot-web-dot-aspxdataviewbase-fa9fca17.md

latest2.1 KB
Original Source

ASPxDataViewBase.PageIndex Property

Gets or sets the index of the currently selected page.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDefaultDescription
Int320

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 property is set to -1 , the control displays the content of all pages within its view.

See Also

PageCount

PageIndexChanging

PageIndexChanged

DataView

Image Gallery

News Control

ASPxDataViewBase Class

ASPxDataViewBase Members

DevExpress.Web Namespace