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 ASPxDataViewBase.PageIndex property in code;
- one of the client-side methods has been called to change an active page.
End-users can display all items in the control 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 ASPxDataViewBase.PageIndex property returns -1.
Before the page index is changed, the ASPxDataViewBase.PageIndexChanging event is raised, allowing you to cancel the action.