Skip to main content

ASPxGridBase.PageIndexChanged Event

Fires after the selected page has been changed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public event EventHandler PageIndexChanged

Event Data

The PageIndexChanged event's data class is EventArgs.


The PageIndexChanged event fires after an end-user has switched between pages by clicking the pager’s numeric or navigation button.


End-users can switch the control to the ShowAllRows mode by clicking the All item in the page size item dropdown window, or by clicking the All navigation button. In this case, the PageIndexChanged event fires and the ASPxGridBase.PageIndex property returns -1.

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" OnPageIndexChanged="ASPxGridView1_PageIndexChanged" 
DataSourceID="SqlDataSource1" KeyFieldName="ProductID">
    <SettingsPager Mode="ShowPager" PageSize="4" />
See Also