ASPxGridBase.PageIndex Property
Gets or sets the index of the page currently being selected.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
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.
Related Links
ASPxGridViewPagerSettings.Mode
ASPxClientGridView.GetPageIndex
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.
Related Links
ASPxCardViewPagerSettings.Mode
ASPxClientCardView.GetPageIndex
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).
Related Links
ASPxVerticalGridPagerSettings.Mode
ASPxClientVerticalGrid.GetPageIndex
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PageIndex property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.