The System.Web.UI.WebControls.SortDirection enumeration is used to represent the direction in which items are sorted. It is commonly used by properties (such as the GridView.SortDirection property of the System.Web.UI.WebControls.GridView class) to indicate the order in which items are displayed in a control.
Member Name | Description |
---|---|
Ascending |
Sort from smallest to largest. For example, from A to Z. |
Descending |
Sort from largest to smallest. For example, from Z to A. |