Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ag-grid/ag-grid/llms.txt
Use this file to discover all available pages before exploring further.
Row Grouping allows you to organize data into hierarchical groups with automatic aggregation. This is an Enterprise feature.
Overview
Row Grouping provides:- Hierarchical organization - Group data by one or more columns
- Automatic aggregation - Sum, average, min, max, and custom aggregations
- Expandable groups - Expand/collapse to show grouped data
- Group panel - Drag-and-drop interface for dynamic grouping
- Multi-level grouping - Create nested group hierarchies
Basic Row Grouping Implementation
Key Configuration
Enable Row Grouping
SetrowGroup: true on columns to group by:
Auto Group Column
Configure the automatically created group column:Group Panel
Enable drag-and-drop grouping:Default Expansion Level
Control which group levels are expanded by default:Aggregation Functions
Add aggregations to numeric columns:Built-in Aggregation Functions
sum- Sum of all valuesavg- Average of all valuesmin- Minimum valuemax- Maximum valuecount- Count of rowsfirst- First valuelast- Last value
Advanced Features
- Custom Aggregation
- Multiple Group Columns
- Programmatic Control
Create custom aggregation functions:
Group Selection
Enable selection at the group level:Filtering with Groups
Configure how filters interact with groups:Sorting Groups
Control group sorting behavior:Group Rendering
Customize how groups are displayed:Required Modules
Row Grouping requires specific Enterprise modules:Row Grouping is an Enterprise feature and requires an AG Grid Enterprise license.
Best Practices
- Hide grouped columns - Set
hide: trueon grouped columns to reduce clutter - Set appropriate aggregations - Choose meaningful aggregation functions
- Configure auto group column - Customize width and rendering
- Limit default expansion - Don’t expand all levels for large datasets
- Enable group panel - Allows users to create their own groupings
- Use appropriate display type - Choose between single/multiple columns based on UX
- Add footers for totals - Use
groupIncludeFooterfor group summaries
Common Patterns
Simple Two-Level Grouping
Dynamic User-Controlled Grouping
Grouping with Grand Totals
Next Steps
- Explore master-detail grids for hierarchical relationships
- Learn about integrated charts with grouped data
- Add pivoting for cross-tabulation