System.Web.UI.WebControls.GridView.SortExpression Property

Gets the sort expression associated with the column or columns being sorted.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public virtual string SortExpression { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the GridView.SortExpression property to determine the sort expression associated with the column or columns being sorted.

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 column or columns being sorted or when you are adding your own custom sorting functionality to a System.Web.UI.WebControls.GridView control.

When multiple columns are sorted, this property contains a comma-separated list of the fields by which to sort.

Requirements

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