'Declaration Public Event PageIndexChanged As EventHandler(Of PageChangedEventArgs)
public event EventHandler<PageChangedEventArgs> PageIndexChanged
The event handler receives an argument of type PageChangedEventArgs containing data related to this event. The following PageChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
OldPageIndex | The PageIndex of the page that was visible. |
AddHandler Me.MyGrid.PageIndexChanged, AddressOf MyGrid_PageIndexChanged Private Sub MyGrid_PageIndexChanged(ByVal sender As Object, ByVal e As PageChangedEventArgs) System.Diagnostics.Debug.WriteLine("Successfully changed page") End Sub 'MyGrid_PageIndexChanged
this.MyGrid.PageIndexChanged +=new EventHandler<PageChangedEventArgs>(MyGrid_PageIndexChanged); private void MyGrid_PageIndexChanged(object sender,PageChangedEventArgs e) { System.Diagnostics.Debug.WriteLine("Successfully changed page"); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2