The GridViewPageEventArgs class is a part of the System.Web.UI.WebControls namespace in C#. It is used to pass event data for the GridView.PageIndexChanging event.
This event occurs when the page index is changing in the GridView control. With the help of GridViewPageEventArgs, we can get the new page index that is selected by the user.
// rebind gridview using new page index BindGridView(); }
In this example, we are setting the page index of the GridView control to the new page index that is selected by the user.
Package library: .NET Framework
Note: This class is included in the System.Web assembly, which is a part of the .NET Framework. Therefore, no separate package library is required.
C# (CSharp) System.Web.UI.WebControls GridViewPageEventArgs - 60 examples found. These are the top rated real world C# (CSharp) examples of System.Web.UI.WebControls.GridViewPageEventArgs extracted from open source projects. You can rate examples to help us improve the quality of examples.