Class PageIndexChangingEventArgs
Represents a class that provides the data for PageIndexChanging event.
Inheritance
System.Object
PageIndexChangingEventArgs
Namespace: Syncfusion.WinForms.DataPager.Events
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class PageIndexChangingEventArgs : CancelEventArgs
Remarks
To skip the page navigation, you have to set Cancel as true in System.ComponentModel.CancelEventArgs of PageIndexChanging event.
Constructors
PageIndexChangingEventArgs(Int32, Int32)
Initializes a new instance of the PageIndexChangingEventArgs class.
Declaration
public PageIndexChangingEventArgs(int oldPageIndex, int newPageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | oldPageIndex | The old page index. |
System.Int32 | newPageIndex | The index of the page to be moved. |
Properties
NewPageIndex
Gets or sets a value indicating the NewPageIndex while navigating from the previous page.
Declaration
public int NewPageIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
While navigating, NewPageIndex can be changed in PageIndexChanging event.
OldPageIndex
Gets a value indicating the previous PageIndex while navigating to the other page.
Declaration
public int OldPageIndex { get; }
Property Value
Type |
---|
System.Int32 |