System.Web.UI.WebControls.DataGridSortCommandEventArgs Class

Provides data for the DataGrid.SortCommand event of the System.Web.UI.WebControls.DataGrid control. This class cannot be inherited.

See Also: DataGridSortCommandEventArgs Members

Syntax

public class DataGridSortCommandEventArgs : EventArgs

Remarks

When sorting is enabled by setting the DataGrid.AllowSorting property of the System.Web.UI.WebControls.DataGrid control to true, System.Web.UI.WebControls.LinkButton controls are rendered in the header of each column that has the DataGridColumn.SortExpression property set. (For automatically generated columns, the DataGridColumn.SortExpression property contains the same value as the data field.) These links allow you to sort the System.Web.UI.WebControls.DataGrid control by the selected column. The DataGrid.SortCommand event is raised when a System.Web.UI.WebControls.LinkButton control is clicked.

For a list of initial property values for an instance of System.Web.UI.WebControls.DataGridSortCommandEventArgs, see the DataGridSortCommandEventArgs.#ctor(object, DataGridCommandEventArgs) constructor.

For more information about handling events, see Events and Delegates.

Requirements

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