asp.net.ph

GridViewSortEventArgs.SortExpression Property

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.

Syntax


Script [ strExpression = ] GridViewSortEventArgs.SortExpression

Property Value


strExpression The expression used to sort the rows in a GridView control.

The property is read/write with no default value.

Remarks

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.

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