Version 6.6.1 Released!

Click to checkout the new features

Blog

AG Grid Row Grouping Without Enterprise: 3 Free Options

Published November 24, 2026

You add rowGroup: true to a column in AG Grid, nothing happens, and then you notice the small red "e" next to every page in the row grouping docs. Row grouping is an AG Grid Enterprise feature. It lives in the ag-grid-enterprise package, and production use needs a commercial licence.

That is fine if you have the budget. If you do not, or if grouping is the only Enterprise feature your spec needs, this guide covers what AG Grid and MUI X charge for, and three free, MIT licensed ways to ship grouped rows with expand and collapse, multi level groups and group totals. There is a live grouped table further down you can try.

The short answer

  • AG Grid Community has no row grouping. You need ag-grid-enterprise (RowGroupingModule) and a licence from $999 per developer. See the AG Grid pricing breakdown.
  • MUI X puts row grouping in Premium, at $599 per developer per year for one application. See MUI X pricing.
  • Tabulator (MIT) has built in row grouping: one groupBy option, multi level groups, collapsible headers and per group totals.
  • TanStack Table (MIT) has grouping and aggregation logic, but no UI. You render the group rows and toggles yourself.
  • DataTables RowGroup (MIT) adds group header and footer rows to a DataTables table, but groups cannot be collapsed.

Row grouping compared

AG Grid EnterpriseMUI X PremiumTabulatorTanStack TableDataTables RowGroup
LicenceCommercial, per developerCommercial, per developer per yearMITMITMIT
Cost for one developerFrom $999From $599 a year$0$0$0
Group header UIYesYesYesYou build itYes
Expand and collapseYesYesYesLogic onlyNo
Multi level groupsYesYesYesYesYes
Group totalsYes (aggFunc)Yes (aggregation)Yes (column calculations)Yes (aggregationFn)You compute them in a render callback
Drag to group panelYesNo (column menu)No (call setGroupBy)You build itNo
FrameworksJS, React, Angular, VueReact onlyJS, plus React, Vue and Angular wrappersReact, Vue, Solid, Svelte, Angular, LitJS (built on the DataTables core)

Prices are the list prices on November 24, 2026. Versions checked: AG Grid 36.3, MUI X 9.18, Tabulator 6.7, TanStack Table 9.3 and DataTables RowGroup 2.1.

Why row grouping costs money in AG Grid

AG Grid splits its grid into Community (MIT, free) and Enterprise (commercial). Since version 33 every feature is a module, and the row grouping modules (RowGroupingModule and RowGroupingPanelModule) ship only in ag-grid-enterprise. The same goes for aggregation, pivoting and tree data, so a "group by department and show the total salary" requirement needs Enterprise twice over.

AG Grid row grouping documentation page with the Enterprise badge next to every grouping topic
AG Grid's row grouping docs. The red "e" marks every page in the section as Enterprise.

The AG Grid version looks like this:

import { ModuleRegistry, ClientSideRowModelModule, createGrid } from "ag-grid-community";
import { RowGroupingModule, LicenseManager } from "ag-grid-enterprise";

ModuleRegistry.registerModules([ClientSideRowModelModule, RowGroupingModule]);
LicenseManager.setLicenseKey("YOUR-ENTERPRISE-KEY");

createGrid(document.querySelector("#grid"), {
  rowData: rows,
  columnDefs: [
    { field: "department", rowGroup: true, hide: true },
    { field: "name" },
    { field: "salary", aggFunc: "sum" },
  ],
  groupDisplayType: "singleColumn",
});

Without a key the features still work locally, but the grid shows a watermark and logs a console error. Shipping it needs a licence: $999 per developer for a Single Application licence, $1,499 for Multiple Applications, and every front end developer who works on the grid needs a seat. A team of five building one internal tool pays about $5,000 up front, then renewal for updates after the first year. The AG Grid pricing post has the full table and the licence rules.

If grouping is the only Enterprise feature in your spec, that is a lot to pay for one feature. Also watch for scope creep: grouping specs often grow into "and export the grouped view to Excel", which is Enterprise too.

MUI X: row grouping is a Premium feature

React teams on Material UI hit the same wall one tier later. The free DataGrid has no grouping, and DataGridPro adds tree data but not grouping. Row grouping and aggregation are in DataGridPremium:

import { DataGridPremium } from "@mui/x-data-grid-premium";

<DataGridPremium
  rows={rows}
  columns={columns}
  initialState={{
    rowGrouping: { model: ["department"] },
    aggregation: { model: { salary: "sum" } },
  }}
/>
MUI X Data Grid row grouping documentation page with the Premium plan badge and a grid grouped by company
MUI X row grouping docs. The gold cube badge marks Premium features.

Premium costs $599 per developer per year for one application, or $999 for multiple applications, after MUI's April 2026 price rise. The MUI X pricing guide lists what each plan includes.

1. Tabulator: built in grouping, free

Tabulator is an MIT licensed JavaScript data grid with no dependencies and no paid tier. Grouping is part of the standard build: set groupBy to a field name and every distinct value becomes a collapsible group header with a row count. Try it below. Switch the grouping, collapse every group, and sort a column (rows sort inside their groups).

The totals at the bottom of each group come from column calculations. When the table is grouped, Tabulator puts the calculation rows inside each group instead of at the bottom of the table, so you get per group subtotals with no extra code. This is the whole configuration behind the demo, minus the data:

import { TabulatorFull as Tabulator } from "tabulator-tables";

const table = new Tabulator("#orders", {
  data: rows,
  layout: "fitColumns",
  groupBy: "region",              // or ["region", "rep"] for two levels
  groupStartOpen: true,           // true, false, or a function per group
  groupClosedShowCalcs: true,     // keep subtotals visible when a group is closed
  groupHeader: (value, count, data) => {
    const total = data.reduce((sum, r) => sum + r.revenue, 0);
    return `${value} (${count} orders, $${total.toLocaleString()})`;
  },
  columns: [
    { title: "Region", field: "region" },
    { title: "Rep", field: "rep" },
    { title: "Units", field: "units", bottomCalc: "sum" },
    { title: "Revenue", field: "revenue", formatter: "money", bottomCalc: "sum" },
  ],
});

// Let users pick the grouping from a select or a button
document.querySelector("#group-by").addEventListener("change", (e) => {
  table.setGroupBy(e.target.value || false);
});

What else the grouping module covers:

  • Multi level groups: pass an array to groupBy, and an array to groupStartOpen and groupHeader to configure each level.
  • Computed groups: groupBy also takes a function, so you can group by month from a date, by price band, or by any derived value.
  • Fixed group lists: groupValues forces a set of groups to exist, including empty ones, which suits status columns like "To do, Doing, Done".
  • Group aggregation: sum, avg, min, max, count, concat or a custom function on any column, via column calculations.
  • Moving rows between groups: with movable rows, dragging a row into another group updates its values to match that group, and groupUpdateOnCellEdit regroups a row when its group cell is edited.
  • Export and print: group headers carry through to clipboard, print and XLSX, CSV and PDF downloads, with separate header options for each.
  • Events: groupClick, groupVisibilityChanged and friends for analytics or lazy loading.

Trade-offs: there is no drag to group panel like AG Grid's, so you give users a select or buttons that call setGroupBy (a few lines, as above). Grouping runs on the rows loaded into the table. With remote pagination, each page is grouped on its own, so for grouping across millions of server rows you either load the data (Tabulator's virtual DOM handles large row counts) or group on the server. There is no built in pivoting; see the JavaScript pivot table guide if you need a true pivot. If your data is a parent and child hierarchy rather than rows that share a value, use tree data instead of grouping.

In React, Vue or Angular: create the table in a mount hook and keep a ref to it. The TanStack Table vs AG Grid post has a React component with groupBy set, and the React guide covers the patterns.

2. TanStack Table: grouping logic, you build the UI

TanStack Table (formerly React Table) is a headless library: it computes grouped rows and aggregates, and you write the markup. This is what most people searching for "react table row grouping" end up using. Version 9 makes every feature opt in, so you register the grouping, aggregation and expanding features and the row models they need:

import {
  createTableHook,
  columnGroupingFeature,
  rowAggregationFeature,
  rowExpandingFeature,
  createGroupedRowModel,
  createExpandedRowModel,
  aggregationFn_sum,
} from "@tanstack/react-table";

const { useAppTable, createAppColumnHelper } = createTableHook({
  features: {
    columnGroupingFeature,
    rowAggregationFeature,
    rowExpandingFeature,
    groupedRowModel: createGroupedRowModel(),
    expandedRowModel: createExpandedRowModel(),
    aggregationFns: { sum: aggregationFn_sum },
  },
});

const col = createAppColumnHelper();
const columns = col.columns([
  col.accessor("department", { header: "Department" }),
  col.accessor("name", { header: "Name" }),
  col.accessor("salary", { header: "Salary", aggregationFn: "sum" }),
]);

// inside a component
const table = useAppTable({ columns, data, initialState: { grouping: ["department"] } });

From there it is your job to render it. In the body loop you check cell.getIsGrouped() to draw the group cell with an expand button (row.getToggleExpandedHandler()) and a count (row.subRows.length), cell.getIsAggregated() to draw totals, and cell.getIsPlaceholder() to blank out repeated values. Column headers get a toggle from column.getToggleGroupingHandler() if users should choose the grouping.

TanStack Table React grouping example with rows grouped by status and an expand button on each group
TanStack Table's official grouping example, grouped by Status. All of the visible UI is example code you copy and style.

Why teams pick it: full control of markup, eleven built in aggregation functions in v9 (sum, count, min, max, extent, mean, median, unique, uniqueCount, first and last), and adapters for every major framework. The cost: the group row styling, indentation, sticky group headers, keyboard handling and virtualisation of grouped rows are yours to build and test. The docs also note that server side grouping (manualGrouping) needs a lot of custom rendering. For a sense of the total effort, see React data table pagination, sorting and filtering, which builds the same features in TanStack Table and in a configured grid.

3. DataTables RowGroup: group headers for a DataTables table

If your app already uses DataTables, the free RowGroup extension inserts a header row (and optionally a footer row) above each group:

new DataTable("#staff", {
  order: [[2, "asc"]],
  rowGroup: {
    dataSrc: "office",
    endRender: (rows, group) => {
      const total = rows.data().pluck("salary").reduce((a, b) => a + b, 0);
      return `${group} total: $${total.toLocaleString()}`;
    },
  },
});
DataTables RowGroup example with an Edinburgh group header row above the staff rows for that office
The DataTables RowGroup simple example, grouped by Office.

Limits to know before you choose it: the extension page lists no option to expand or collapse a group, no support for the Scroller extension (so no virtual scrolling of grouped data), and Buttons exports ignore the grouping. Group totals are whatever you compute in startRender or endRender. It is a good fit for a read only report that is already a DataTables table, and a weak fit for an interactive grouped grid. The DataTables alternatives post covers where else DataTables runs out.

Which should you use?

  • You need collapsible groups with subtotals and no licence bill: Tabulator. It is the closest free match to AG Grid Enterprise grouping, and the same package also covers range selection, clipboard and XLSX export.
  • You own a design system and want every pixel of the group rows: TanStack Table, and budget time for the UI.
  • You have a DataTables report and just need headings between groups: DataTables RowGroup.
  • You already pay for AG Grid Enterprise or MUI X Premium, or need pivoting and a drag to group panel: stay where you are.

For a wider view of free grids, see the AG Grid alternatives list, the best React table libraries and the best JavaScript table libraries. If you are moving off AG Grid, the Tabulator vs AG Grid page maps the options one to one.

Frequently asked questions

Is row grouping free in AG Grid?

No. Row grouping is an AG Grid Enterprise feature. The RowGroupingModule ships in the ag-grid-enterprise package, and production use needs a licence starting at $999 per developer. AG Grid Community, the free MIT edition, has no row grouping.

Can I use AG Grid row grouping without a licence key?

You can try it locally. Without a key AG Grid Enterprise shows a watermark and logs a console error. A free 30 day trial key removes both, and production use requires a paid licence.

Does AG Grid Community support grouping at all?

Community supports column groups (grouped headers over several columns), which is a different feature. Grouping rows by a shared value, with group rows and aggregation, is Enterprise only.

How do I do row grouping in React Table?

In TanStack Table (React Table), register the column grouping and row expanding features with a grouped row model and an expanded row model, set the grouping state to an array of column ids, and render group cells with an expand button. TanStack Table gives you the logic but not the UI. Tabulator gives you both, and works in React through a ref.

What is the difference between row grouping and column grouping?

Row grouping gathers rows that share a value (all orders for one region) under a collapsible group row. Column grouping puts a shared header over several columns (a "Contact" header over email and phone). Tabulator supports both for free: groupBy for rows and nested column definitions for column groups.

Is there a free alternative to AG Grid Enterprise row grouping?

Yes. Tabulator is MIT licensed and includes row grouping, multi level groups, collapsible group headers and per group totals in the standard package, with no licence key. TanStack Table and DataTables RowGroup are also free, with the trade-offs above.

Get started

Install Tabulator with npm install tabulator-tables and follow the install guide. The grouping docs list every option, and the grouping example shows it running. The source is on GitHub.