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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph