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>].