Tab

ASPxGridBase.PageIndex Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue(0)]
public int PageIndex { get; set; }

Property Value

Type Default Description
Int32

0

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

Remarks

Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.

ASPxGridView

Use the PageIndex property to switch between pages in code.

If the PageIndex property is set to -1, the grid displays the content of all pages within its view (the PagerSettingsEx.AllButton mode).

NOTE

If the ASPxGridViewPagerSettings.Mode property is set to EndlessPaging, use the ASPxGridBase.ResetToFirstPage method to switch the grid to the first page.

ASPxGridViewPagerSettings.Mode

ASPxClientGridView.GetPageIndex

Grid View - Getting Started

Code Central Example: How to implement the multi-row editing feature in the ASPxGridView

ASPxCardView

Use the PageIndex property to switch between pages in code.

If the PageIndex property is set to -1, the grid displays the content of all pages within its view (the PagerSettingsEx.AllButton mode).

NOTE

If the ASPxCardViewPagerSettings.Mode property is set to EndlessPaging, use the ASPxGridBase.ResetToFirstPage method to switch the grid to the first page.

ASPxCardViewPagerSettings.Mode

ASPxClientCardView.GetPageIndex

Card View - Getting Started

ASPxVerticalGrid

Use the PageIndex property to switch between pages in code.

If the PageIndex property is set to -1, the grid displays the content of all pages within its view (the PagerSettingsEx.AllButton mode).

ASPxVerticalGridPagerSettings.Mode

ASPxClientVerticalGrid.GetPageIndex

Vertical Grid - Getting Started

See Also