[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
  Prerequisites
 [Expand]Getting Started
 [Collapse]Controls
  [Expand]Navigation and Layout
  [Expand]Data Editors
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Collapse]Data Management
    [Expand]Data Summaries
    [Collapse]Grouping
      Grouping Overview
      Expanding and Collapsing Group Rows
      Grouping in Code
      Group Modes
    [Expand]Filtering and Searching
    [Expand]Sorting
   [Expand]Data Editing
   [Expand]Validation
   [Expand]Asynchronous Virtual Source
   [Expand]Data Scrolling
   [Expand]Visual Elements
   [Expand]Examples
  [Expand]Charts
  [Expand]Map Control
  [Expand]Gauges
  [Expand]PDF Viewer
  [Expand]Scheduler
   SVG Icon
   Context Menu
 [Expand]Themes and Color Schemes
  Localization
  Get More Help
 [Expand]API Reference
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Grouping Overview

Expanded Grouping Overview

The Grid Control allows data to be grouped by an unlimited number of columns. When a grid is grouped by a single column, data rows that have identical values in this column are arranged into groups. Each group is identified by a group row. If the grid is grouped by another column, data rows within each group are arranged into second level groups based on the values of the new grouping column.

Group rows are used to organize data rows into a tree when data grouping is applied. Each group row is assigned a unique integer value called a row handle. Group row handles are negative (starting with -1).

Rows are always sorted against the grouping columns. If data is grouped against a column that is not sorted, the grid will automatically apply sorting to the column in ascending order.

Grouping columns are not displayed within a grid by default. Their headers are displayed within the Group Panel. To show these columns within a grid, set the GridControlBase.ShowGroupedColumns property to true.

Expanded Concepts

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