Fork me on GitHub

PageChangingEventArgs Class

Provides data for the PageChanging event.

C# Syntax:

public sealed class PageChangingEventArgs : CancelEventArgs

Constructors:

Name Description
PageChangingEventArgs Initializes a new instance of the PageChangingEventArgs class.

Properties:

Name Description
Cancel Gets or sets a value that indicates whether the operation should be canceled. (Inherited from CancelEventArgs.)
NewPageIndex Gets the index of the requested page.

Remarks:

The requested page change can be canceled by setting the Cancel property to true.