DataGridPageChangedEventArgs::NewPageIndex Property
.NET Framework (current version)
Gets the index of the page selected by the user in the page selection element of the DataGrid control.
Assembly: System.Web (in System.Web.dll)
Use the NewPageIndex property to determine the index of the page selected by the user in the page selection element of the DataGrid control. This value is often used to set the CurrentPageIndex property of the DataGrid control to display the selected page.
The following code example demonstrates how to use the NewPageIndex property to determine the index of the page selected by the user in the page selection element of the DataGrid control. This value is then used to set the CurrentPageIndex property of the DataGrid control to display the selected page.
.NET Framework
Available since 1.1
Available since 1.1
Show: