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: