The row type.
Deselect everything.
Copy the selected rows on the current page to the clipboard as TSV, which spreadsheets expect — or the whole loaded page when nothing on it is selected. Unlike GridApi.exportCsv this never fetches.
Download rows as CSV, honouring each column's exportValue and
suppressExport, with the visible columns in display order.
By default every row matching the current sort and filters is fetched from the data source — up to 1000 — not just the loaded page. Starting another export cancels one still fetching.
Optionaloptions: ExportCsvOptions
Scope, row cap, file name and separator.
Resolves once the download has been triggered. Rejects if a
fetch fails, or with an AbortError when a newer export cancels it.
The rows currently loaded for this page, in display order. While grouped, the rows loaded inside expanded groups — never the group rows themselves.
The active filters.
The column id the grid is grouped by, or null when it is not grouped.
Ids of every selected row, including those on other pages.
The selected rows that are on the current page.
The active sorts, primary first.
Re-fetch the current page.
Optionaloptions: { purge?: boolean }
By default every cached block is dropped first, so
nothing stale can survive. Pass purge: false to keep the cached
neighbouring pages and re-fetch only the current one.
Discard the user's column layout and return to the definitions' defaults.
Select every row on the current page.
Group by a column, or pass null to ungroup. Ignored for a column without
ColumnDef.enableRowGroup. Returns to the first page and collapses
every group. Under a controlled
rowGroupColId this only asks the
owner, through onRowGroupColIdChange.
Open the row editor programmatically.
The id, as returned by getRowId.
Close the editor, abandoning any uncommitted draft.
Patch rows already on screen, matched by getRowId, without a round trip.
Ids that are not on the current page are ignored, so a live feed can push everything it has without the client filtering first. Scroll position, selection, sort and any open editor are all preserved.
Whole replacement rows, not partials.
The imperative handle onto a live grid.
Reach it either through DataGridProps.apiRef or as DataGridProps.toolbar's argument.
Example