System.Web.UI.WebControls.DataGrid.SortCommand Event

Occurs when a column is sorted.

Syntax

public event DataGridSortCommandEventHandler SortCommand

Remarks

The DataGrid.SortCommand event is raised when a column is sorted.

A typical handler for the DataGrid.SortCommand event sorts the list, and then rebinds 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