Basic Usage
Create column groups by defining a hierarchy:Visual Structure
Visual Structure
This creates a two-level header structure:
Multi-Level Nesting
Column groups can be nested multiple levels deep:- Two Levels
- Three Levels
Styling Group Headers
Apply custom styles to column group headers:Individual Column Styling
Individual Column Styling
Child columns can have their own styles:
React Elements as Names
Use React elements for rich header content:Interactive Group Headers
Interactive Group Headers
Add interactivity to group headers:
The grid does not provide built-in functionality to hide/show columns based on group toggles. You’ll need to implement this logic yourself.
Column Spanning
Column groups work seamlessly with column spanning:Features in Groups
All column features work within groups:Supported Features:
- Sorting
- Resizing
- Editing
- Custom renderers
- Cell spanning
- Column classes
Limitations
TreeDataGrid Compatibility
TreeDataGrid Compatibility
Column groups are not supported in From the source code (src/TreeDataGrid.tsx):
TreeDataGrid:API Reference
ColumnGroup Type
ColumnOrColumnGroup Type
CalculatedColumnParent Type
The internal type used for rendered parent groups:Related Features
- Column Spanning - Span cells across multiple columns
- Column Resizing - Resize columns within groups
- Frozen Columns - Freeze individual columns (not entire groups)