DataGridPageChangedEventArgs

DataGridPageChangedEventArgs

System.Web.UI.WebControls (system.web.dll)sealed class

This class provides extra information for the DataGrid.PageIndexChanged event. This information includes the CommandSource, which will always be the DataGridItem that represents the page selection control, and the NewPageIndex, which indicates the selected page (the first page is 0, although it the corresponding link in the DataGrid will be displayed as "1").

public sealed class DataGridPageChangedEventArgs : EventArgs {
// Public Constructors
   public DataGridPageChangedEventArgs(object commandSource, int newPageIndex);
// Public Instance Properties
   public object CommandSource{get; }
   public int NewPageIndex{get; }
}

Hierarchy

System.Object System.EventArgs DataGridPageChangedEventArgs

Passed To

DataGrid.OnPageIndexChanged( ), DataGridPageChangedEventHandler.{BeginInvoke( ), Invoke( )}



    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace