Skip to content
MUI’s hosted AI Assistant backend shuts down at the end of 2026.Switch in two lines →
  • Products
    • AG Grid AI Toolkit Early accessThe model and the server behind the toolkit.
    • MUI X Data Grid StableThe backend for the Premium AI Assistant.
    • TanStack Table Public alphaA plugin that applies each answer to your table.
    • AG Studio Early accessA hosted backend for its assistant, not built yet.
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
Sign inStart a 7-day trial
Menu
  • Products
    • AG Grid AI Toolkit Early access
    • MUI X Data Grid Stable
    • TanStack Table Public alpha
    • AG Studio Early access
  • How it works
  • Accuracy
  • Pricing
  • Security
  • Docs
    • Quickstart: server route
    • Quickstart: TanStack Table
    • Browser keys
    • Moving from MUI’s hosted service
    • Guide: when MUI’s service retires
  • Sign in

Product

  • How it works
  • Accuracy
  • Pricing
  • Data and security

Grids

  • AG Grid AI ToolkitEarly access
  • MUI X Data Grid PremiumStable
  • TanStack TablePublic alpha
  • AG StudioEarly access

Docs

  • Quickstart: server route
  • Browser keys
  • Guide: when MUI’s service retires

Company

  • Contact
  • Terms
  • Privacy

Not affiliated with or endorsed by MUI or AG Grid. MUI and AG Grid are trademarks of their respective owners.

© 2026 Gridsay

Docs pages
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core
On this page

On this page

  1. What users can ask
  2. What the grid needs
  3. What is declined
  4. Next
Skip to the article
Start
  • Documentation
  • How it works
  • Examples
MUI X Data Grid
  • Quickstart: server route
  • From the browser
  • Using the helper
  • Filtering
  • Sorting
  • Grouping
  • Aggregation
  • Pivoting
  • Charts
  • Row selection
  • Follow-up questions
  • Refusals and errors
  • Moving from MUI’s service
  • Reference
TanStack Table
  • Quickstart
  • Describing columns
  • Filtering
  • Sorting
  • Grouping
  • Row selection
  • Server-side data
  • Controlled state
  • Undo and reset
  • Refusals and errors
  • API reference
Keys and sign-in
  • Secret and publishable keys
  • Browser keys
  • JWT and OIDC
  • Session tokens
  • Identity webhook
  • Per-user limits
  • The console
  • Data and privacy
HTTP API
  • HTTP API
  • Authentication
  • Data Grid endpoint
  • Follow-up questions
  • Private mode
Reference
  • Errors
  • Limits
  • Tiers and credits
  • @gridsay/core

Grouping

On this page

  1. What users can ask
  2. What the grid needs
  3. What is declined
  4. Next

Your users ask to see rows "by region" or "per country", and the grid groups them, in the nesting order they give.

What users can ask#

Ask

Group by region

Changes1 change
  1. 1group region
Ask

Group by country first, then department

Changes2 changes
  1. 1group country
  2. 2group department

Grouping combines with filters and sorting in one question:

Ask

Group by country, only revenue greater than 250, sort countries ascending and revenue descending within each country

Changes4 changes
  1. 1filter revenue > 250
  2. 2group country
  3. 3sort country ascending
  4. 4sort revenue descending

"Revenue by category" groups and adds a total: see Aggregation. "Revenue by category across years" is a cross-tab: see Pivoting.

What the grid needs#

SettingWhereWith MUI's stock resolverWith the Gridsay helper
disableRowGroupingWhereGrid propWith MUI's stock resolverNot sent. Gridsay answers with groups, the grid does not apply them, and the panel still reports success.With the Gridsay helperSent. A question that needs grouping is declined.
groupable: falseWhereColumnWith MUI's stock resolverNot sent. The grid groups by that column anyway: MUI allows it from code.With the Gridsay helperSent. Grouping by that column is declined.
defaultGroupingExpansionDepthWhereGrid propWith MUI's stock resolverNew groups open collapsed, so an answer can show only group headers. -1 opens them all.With the Gridsay helperThe same.
rowGroupingColumnModeWhereGrid propWith MUI's stock resolverA sort on a grouped column does not reorder the groups.With the Gridsay helperSorting a grouped column reorders the groups in both modes.

Groups are opened and closed by your grid's settings: an answer cannot expand or collapse them.

What is declined#

Grouping by a date makes one group per exact date. There is no group "by year" or "by month" unless a column holds that value. The year and quarter columns MUI derives from a date exist only for pivots:

Ask

Group by order date year

ChangesNo change
Refused

I can't group by year; try pivoting by Order date (Year).

Your user reads this sentence. The table stays as it was.

With the helper and disableRowGrouping on:

Ask

Group by region

ChangesNo change
Refused

I can't group rows here; try filtering or sorting by region instead.

Your user reads this sentence. The table stays as it was.

With the helper and groupable: false on the manager column:

Ask

Group by manager

ChangesNo change
Refused

I can't group by manager; try grouping by department or level.

Your user reads this sentence. The table stays as it was.

If an answer still groups after one correction, the sentence is "Grouping is switched off for this table." or, naming the column, The `manager` column can't be grouped.

Next#

  • Aggregation
  • Pivoting
  • Sorting