The row type.
The context type. Inferred
from context; defaults to unknown.
OptionalapiReceives the imperative GridApi. Accepts a ref object or a callback ref.
OptionalclassExtra classes on the grid's outer frame.
The columns to render.
Define these as a module constant or memoise on [] — anything volatile
belongs in DataGridProps.context instead.
OptionalcontextVolatile app state handed to every cell renderer.
This is the escape hatch that keeps columns static: put in-flight ids,
permission checks and event handlers here, and changing them re-renders
cells without rebuilding a single column definition.
Where rows come from. Memoise it; a new identity causes a refetch.
OptionaldefaultRows per page before the user changes it. A persisted preference wins.
OptionalemptyShown when a query returns no rows.
OptionalexportBase file name for CSV export, without the extension.
OptionalfloatingShow the always-visible filter inputs under the header.
Stable identity for a row, used for selection, editing and GridApi.updateRows. Must be stable across refetches.
OptionalheaderHeader height in pixels.
OptionalheightHeight of the whole grid. Any CSS length; a number is treated as pixels.
OptionalonCalled when a fetch or a commit throws. Aborted requests are not reported.
OptionalonEnables row editing. Called when the user commits a row.
Return { ok: false, errors } to keep the row open and paint each message
onto the cell whose column id it is keyed by.
OptionalonEnables dropping files onto a row (e.g. to attach documents to it).
OptionalonCalled whenever the selection changes.
OptionalpagePage sizes offered in the pager.
OptionalrowRow height in pixels. Fixed for every row — that is what keeps virtualization O(1).
OptionalselectableShow the checkbox selection column.
OptionalstoragelocalStorage key for column layout, sort, filters and page size.
Omit it and nothing is persisted. Stored under hxg:<storageKey>.
OptionaltoolbarRendered into the toolbar strip above the header, left of the built-in Columns and Export CSV buttons.
Props for DataGrid.