Fires after the selected page has been changed.
The PageIndexChanged event's data class is EventArgs.
The PageIndexChanged event fires in the cases listed below:
- an end-user has switched between pages by clicking the numeric or navigation button;
- a new value has been assigned to the ASPxPagerBase.PageIndex property in code.
End-users can display all items on a page 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 ASPxPagerBase.PageIndex property returns -1.
Before the page index is changed, the ASPxPagerBase.PageIndexChanging event is raised, allowing you to cancel the action.