asp.net.ph

DataGridPageChangedEventArgs Constructor

System.Web.UI.WebControls Namespace   DataGridPageChangedEventArgs Class


Initializes a new instance of the DataGridPageChangedEventArgs class.

[ VB ]
Public Sub New ( _
   ByVal commandSource As Object, _
   ByVal newPageIndex As Integer _
)

[ C# ]
public DataGridPageChangedEventArgs (
   object commandSource,
   int newPageIndex
);

[ C++ ]
public: DataGridPageChangedEventArgs (
   Object* commandSource,
   int newPageIndex
);

[ JScript ]
public function DataGridPageChangedEventArgs (
   commandSource : Object,
   newPageIndex : int
);

Parameters

commandSource
The source of the command.
newPageIndex
The index of the page selected by the user from the page selection element of the DataGrid control.

Remarks

Use this constructor to initialize a new instance of the DataGridPageChangedEventArgs class.

When an instance of DataGridCommandEventArgs is created by a call to this constructor, the following properties are initialized to the specified values.

Properties Initial Value
CommandSource The commandSource parameter.
NewPageIndex The newPageIndex parameter.

Example

The following example demonstrates how to initialize a new instance of the DataGridPageChangedEventArgs class.

void myPageChangedHandler ( Object src, DataGridPageChangedEventArgs e ) {
   DataGridPageChangedEventArgs args = new DataGridPageChangedEventArgs (
      e.CommandSource, e.NewPageIndex );
}
  C# VB

See Also

DataGridPageChangedEventArgs Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph