[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Collapse]Query Builder
   [Expand]Getting Started
    Binding to Data
    Selecting Tables
    Joining Tables
   [Collapse]Shaping Data
     Data Sorting
     Data Grouping and Aggregation
     Data Filtering
    Previewing Results
    Obtaining the Resulting Query
    Localizing the Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Data Grouping and Aggregation

You can group data records by a specific column by selecting it and enabling the Group By setting in the Column Properties panel.

After this, you should specify the other selected columns' aggregation using the Aggregate property.

The Query Builder supports the following aggregate functions: Count, Max, Min, Avg, Sum, CountDistinct, AvgDistinct and SumDistinct. Applying any of these functions to a column discards individual data records from the query result set and includes only the aggregate function's result.


You can use aggregation and grouping for all the selected columns or none of them.

Applying aggregation to one column automatically applies grouping to the other selected columns. Removing all the aggregation functions resets grouping against other columns.

Is this topic helpful?​​​​​​​