Data Summary - Sort By Summary

Sort by summary mode:

Company Name
City
Region
Unit Price
Quantity
Total
Country: Poland ($3,531.95)
Country: Norway ($5,735.15)
Country: Argentina ($8,119.10)
Country: Portugal ($12,468.65)
Country: Italy ($16,705.15)
Country: Spain ($19,431.89)
Country: Finland ($19,778.45)
Country: Mexico ($24,073.45)
Country: Switzerland ($32,919.50)
Country: Denmark ($34,782.25)
 Count=2155    $1,354,458.59
Page 1 of 3 (21 items)
Prev
[1]
2
3
Next
Description
C#
VB
ASPX

The ASPxGridView provides an API to sort groups by their summary values.

In this demo, the ASPxGridView is grouped by countries. Use the ‘Sort by summary mode’ combo box to select the required sort order. For instance, select Descending to sort grouped rows, so that countries having the maximum sales amount appear on top of the view.

Group rows are sorted by summary values based upon the information provided by ASPxGroupSummarySortInfo objects. Properties introduced by this objects represent the sort order, summary item used to calculate summary values, etc. These properties are read-only and initialized by the constructor.

To sort group rows by summary values, create a new ASPxGroupSummarySortInfo object and add it to the ASPxGridView's GroupSummarySortInfo collection using the GroupSummarySortInfoCollection.Add method. After the ASPxGroupSummarySortInfo object has been added to the collection, group rows are automatically sorted by their summary values.