Group Data

The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.

Contact Name
Company Name
Country: Argentina
Country: Austria
Country: Belgium
Country: Brazil
Country: Canada
Country: Denmark
Country: Finland
Country: France
Country: Germany
Country: Ireland

Enable the Data Grid's ShowGroupPanel property to display the Group Panel. Users can drag and drop a column header onto the Group Panel to group data by this column. They can also drag headers within this panel to change the group order. To ungroup data by a column, users should drag the column header from the Group Panel back to the Column Header Panel.

To prevent users from changing the group options in the entire component, disable the DxDataGrid.AllowColumnDragDrop property. To disable grouping by individual columns, use their AllowGroup property.

To group grid data in code, set a column's GroupIndex property to a zero-based integer value. If you group data by multiple columns, this property specifies the group level. The lower the value, the higher a column's group level. To ungroup grid data, set the GroupIndex property to -1.

Use the ShowGroupedColumns property to specify whether to display grouped columns among other columns in the Data Grid.