ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 740
نمايش فراداده

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( )}