System.Web.UI.WebControls Namespace GridViewSortEventArgs Class
.NET Framework version 2.0
Sets or retrieves the direction in which to sort the GridView control.
Script |
[ SortDirection enumValue = ] GridViewSortEventArgs.SortDirection |
The property is read/write with no default value.
When the Sorting event is raised, you can use the SortDirection property to determine the order in which the GridView control will sort its items ( based on the sort expression ) when the sort operation is performed. Because the Sorting event occurs before the sort operation, you can also use the SortDirection property to programmatically set the sort direction.
GridViewSortEventArgs Members AllowSorting