System.Web.UI.WebControls.DataGrid.PageIndexChanged Event

Occurs when one of the page selection elements is clicked.

Syntax

public event DataGridPageChangedEventHandler PageIndexChanged

Remarks

The DataGrid.PageIndexChanged event is raised when one of the page selection elements is clicked.

A typical handler for the DataGrid.PageIndexChanged event sets the DataGrid.CurrentPageIndex property to the index of the page you want to display and then uses the BaseDataList.DataBind method to bind the data to the System.Web.UI.WebControls.DataGrid control.

For more information about handling events, see [<topic://cpconEventsOverview>].

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0