Back to Devexpress

ASPxPagerBase.PageIndex Property

aspnet-devexpress-dot-web-dot-aspxpagerbase-2d466895.md

latest1.9 KB
Original Source

ASPxPagerBase.PageIndex Property

Gets or sets the index of the page currently being selected.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(0)]
public virtual int PageIndex { get; set; }
vb
<DefaultValue(0)>
Public Overridable 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 ASPxPagerBase.PageCount property.

Settings the PageIndex property to a new value raises the ASPxPagerBase.PageIndexChanging event and then, if the page has been changed, the ASPxPagerBase.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

Pager

ASPxPagerBase Class

ASPxPagerBase Members

DevExpress.Web Namespace