Grid View - Data Summaries Sort by Summaries

Company Name 
Unit Price 
ExpandCountry: Poland ($3,531.95)
ExpandCountry: Norway ($5,735.15)
ExpandCountry: Argentina ($8,119.10)
ExpandCountry: Portugal ($12,468.65)
ExpandCountry: Italy ($16,705.15)
ExpandCountry: Spain ($19,431.89)
ExpandCountry: Finland ($19,778.45)
ExpandCountry: Mexico ($24,073.45)
ExpandCountry: Switzerland ($32,919.50)
ExpandCountry: Denmark ($34,782.25)
Page 1 of 3 (21 items)Prev123Next

The DevExpress ASP.NET MVC GridView provides a rich API to sort data groups by their summary values.

In this demo, the GridView extension is grouped by country. 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 with the highest sales appear at the top of the view.

Group rows are sorted by summary value based on the information provided by ASPxGroupSummarySortInfo objects. Properties introduced by these 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 value, create a new ASPxGroupSummarySortInfo object and add it to the GridView'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.

Version: v2017 vol 1.7
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.