Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGridSortCommandEventArgs::SortExpression Property

 

Gets the expression used to sort the DataGrid control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property String^ SortExpression {
	String^ get();
}

Property Value

Type: System::String^

The expression used to sort the DataGrid control.

Use the SortExpression property to determine which column the user selected to sort the DataGrid control.

The following code example demonstrates how to use the SortExpression property to determine which column the user selected to sort the DataGrid control by.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft