System.Web.UI.WebControls.GridView.SortDirection Property

Gets the sort direction of the column being sorted.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.SortDirection.Ascending)]
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public virtual SortDirection SortDirection { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the GridView.SortDirection property to determine whether the column being sorted is sorted in ascending or descending order.

Note:

The System.Web.UI.WebControls.GridView control has a built-in sorting feature that automatically sets this property. This property is typically used only when you need to programmatically determine the sort direction or when you are adding your own custom sorting functionality to a System.Web.UI.WebControls.GridView control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0