GridView::SortExpression Property
.NET Framework (current version)
Gets the sort expression associated with the column or columns being sorted.
Assembly: System.Web (in System.Web.dll)
public: [BrowsableAttribute(false)] property String^ SortExpression { virtual String^ get(); }
Property Value
Type: System::String^The sort expression associated with the column or columns being sorted.
Use the SortExpression property to determine the sort expression associated with the column or columns being sorted.
Note |
|---|
The 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 GridView control. |
When multiple columns are sorted, this property contains a comma-separated list of the fields by which to sort.
.NET Framework
Available since 2.0
Available since 2.0
Show:
