|
1 | | -The DataGrid allows users to group data against a single column or multiple columns. |
| 1 | +To group data by columns, users can utilize the group panel. Enable the [groupPanel](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/groupPanel/).[visible](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/groupPanel/#visible) property to display the group panel area. |
| 2 | +<!--split--> |
2 | 3 |
|
3 | | -To group data, users can drag and drop column headers onto and from the area above the grid. This area is called the [groupPanel](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/groupPanel/). Set its **visible** property to **true** to show it. |
| 4 | +To group data, users can drag and drop column headers onto and from the group panel. DataGrid also supports keyboard shortcuts to perform grouping actions: |
4 | 5 |
|
5 | | -Users can reorder headers within the **groupPanel** to change group hierarchy. To enable this functionality, set the [allowColumnReordering](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#allowColumnReordering) property to *"true"*. |
6 | | -<!--split--> |
| 6 | +- **Ctrl+G** |
| 7 | +Move the focused column header to the group panel. |
| 8 | +- **Backspace**, **Delete**, and **Ctrl+Shift+G** |
| 9 | +Remove the focused column header from the group panel. This shortcut is available for items in: |
| 10 | + - The group panel. |
| 11 | + - The column header if [showWhenGrouped](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/#showWhenGrouped) is enabled. |
| 12 | +- **Shift+Alt+G** |
| 13 | +Ungroup all items from the group panel. |
| 14 | + |
| 15 | +To allow users to reorder headers within the group panel, assign `true` to the [allowColumnReordering](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/#allowColumnReordering) property. Reordering headers in the group panel changes the component's group hierarchy. Users can reorder headers with mouse drag-and-drop operations or keyboard shortcuts: |
| 16 | + |
| 17 | +- **Ctrl/Cmd+Left Arrow** |
| 18 | +Move the focused header to the left. |
| 19 | +- **Ctrl/Cmd+Right Arrow** |
| 20 | +Move the focused header to the right. |
| 21 | + |
| 22 | +Grouping and reordering operations are also available in the component's context menu. |
7 | 23 |
|
8 | 24 | To group data against a single **column**, apply the [groupIndex](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/columns/#groupIndex) property to it. This property accepts a zero-based index number that controls the column order. In this example, the data is grouped against the *State* column. |
9 | 25 |
|
10 | | -You can also use the [grouping](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/grouping/) object to specify user interaction settings related to grouping. This demo illustrates the [autoExpandAll](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/grouping/#autoExpandAll) property that specifies whether the groups appear expanded. |
| 26 | +You can also use the [grouping](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/grouping/) object to specify user interaction settings related to grouping. This demo illustrates the [autoExpandAll](/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/grouping/#autoExpandAll) property that specifies whether the groups appear expanded. |
0 commit comments