Sorting

ProductNameUnitPriceQuantityDiscountOrderDateDiscontinued
Queso Manchego La Pastora3820.05833932800000
Spegesild12300.15833932800000
Chartreuse verte1820.05833932800000
Camembert Pierrot3420.06833932800000
Tofu23.2510.03833932800000
Tofu23.25200.25833932800000
Chang19240.2833932800000
Chang19100.15833932800000
Spegesild1230.02833932800000
Mascarpone Fabioli3210833932800000
Uncle Bob's Organic Dried Pears3010.05833932800000
Lakkalikööri1820.15833932800000
Sir Rodney's Marmalade8110.04833932800000
Grandma's Boysenberry Spread2510.02833932800000
Grandma's Boysenberry Spread25200.25833932800000
Description

C1GridView supports sorting.

Sorting is allowed if the AllowSorting property is set to True. End-user sorting is allowed if the SortExpression property of the column is set to non-empty value.

The following properties are used in this sample:

  • AllowSorting - to enable sorting.

The following column properties are used in this sample:

  • SortExpression - to specify a sort expression that will be used by the control to sort data.
  • SortDirection - to automatically sort the Total column in descending order.

Click a column header to sort by that column.

Documentation