System.Web.UI.WebControls Namespace GridViewSortEventArgs Class
.NET Framework version 2.0
Sets or retrieves the expression used to sort the rows in a GridView control.
Script |
[ strExpression = ] GridViewSortEventArgs.SortExpression |
strExpression |
The expression used to sort the rows in a GridView control. |
The property is read/write with no default value.
When the Sorting event is raised, you can use the SortExpression property to determine the sort expression that will be used to sort the GridView control when sort operation is performed.
By default, the GridView control sorts a single column at a time. The sort expression simply contains the name of the field to sort. You can also sort multiple columns at a time by programmatically setting this property to a comma-separated list of field names.
GridViewSortEventArgs Members AllowSorting