DataGrid.SortCommand Event
.NET Framework 3.0
Occurs when a column is sorted.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event DataGridSortCommandEventHandler^ SortCommand { void add (DataGridSortCommandEventHandler^ value); void remove (DataGridSortCommandEventHandler^ value); }
/** @event */ public void add_SortCommand (DataGridSortCommandEventHandler value) /** @event */ public void remove_SortCommand (DataGridSortCommandEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
The SortCommand event is raised when a column is sorted.
A typical handler for the SortCommand event sorts the list, and then rebinds the data to the DataGrid control.
For more information about handling events, see Consuming Events.
Community Additions
ADD
Show: