Fires on the server side before the page size (number of items per a page) is changed by end-user interactions and allows you to cancel the action.
public event DataViewPageSizeEventHandler PageSizeChanging
Public Event PageSizeChanging As DataViewPageSizeEventHandler
The PageSizeChanging event's data class is DataViewPageSizeEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
|NewPageSize||Gets or sets the new page size (number of items displayed on a page).|
End-users can change the page size (the number of items displayed on a page) using the page size item element of the embedded pager. Additionally, the All navigation button can be used to display all items.
The PageSizeChanging event allows you to perform any custom actions before the page size is changed by end-user interactions. You can use the event parameter's properties to identify a new page size (DataViewPageSizeEventArgs.NewPageSize) or to cancel the operation by setting the Cancel property to true.
After the page size has been changed, the ASPxDataViewBase.PageSizeChanged event is raised.