asp.net.ph

GridViewSortEventArgs.SortDirection Property

System.Web.UI.WebControls Namespace   GridViewSortEventArgs Class


.NET Framework version 2.0

Sets or retrieves the direction in which to sort the GridView control.

Syntax


Script [ SortDirection enumValue = ] GridViewSortEventArgs.SortDirection

Property Value


enumValue One of the SortDirection values.

The property is read/write with no default value.

Remarks

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.

See Also

GridViewSortEventArgs Members   AllowSorting Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note