# DataGridProps (@salmonui/data-grid)

> The DataGridProps interface of @salmonui/data-grid.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridProps

```ts
import type { DataGridProps } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridProps<Row> extends DataGridChromeProps<Row>, DataGridQueryProps, DataGridEditProps<Row>, DataGridOutputProps<Row>, DataGridAdaptiveProps, DataGridDetailProps<Row>, DataGridRowPinningProps<Row>, DataGridDataUiProps<Row>, DataGridFilterBuilderProps, DataGridTreeProps<Row> {
    data?: readonly Row[] | DataSource<Row>;
    columns?: readonly DataGridColumn<Row>[];
    children?: ReactNode;
    getRowId?: (row: Row) => RowId | number;
    modules?: readonly DataGridModule<Row>[];
    features?: readonly DataGridFeature[];
    locale?: string;
    timeZone?: string;
    currency?: string;
    dir?: 'ltr' | 'rtl' | 'auto';
    height?: number | string;
    width?: number | string;
    rowHeight?: number;
    getRowHeight?: (row: Row) => number;
    estimatedRowHeight?: number;
    headerHeight?: number;
    defaultColumnWidth?: number;
    virtualization?: boolean | DataGridVirtualization;
    infiniteScroll?: boolean | DataGridInfiniteScroll<Row>;
    renderLoadingRow?: (ctx: DataGridLoadingRowContext) => ReactNode;
    initialRows?: number;
    initialColumns?: number;
    textWrap?: DataGridTextWrap;
    gridLines?: DataGridLines;
    overflow?: DataGridOverflow;
    highlightOnHover?: boolean;
    striped?: boolean;
    resizable?: boolean;
    resizeMode?: 'normal' | 'auto';
    reorderable?: boolean;
    onBeforeColumnVisibilityChange?: (event: DataGridColumnVisibilityChangeEvent) => void;
    onColumnVisibilityChange?: (event: DataGridColumnVisibilityChangeEvent) => void;
    onBeforeColumnReorder?: (event: DataGridColumnReorderEvent) => void;
    onColumnReorder?: (event: DataGridColumnReorderEvent) => void;
    grouping?: boolean | DataGridGrouping<Row>;
    onBeforeGroupChange?: (event: DataGridGroupChangeEvent) => void;
    onGroupChange?: (event: DataGridGroupChangeEvent) => void;
    onBeforeGroupToggle?: (event: DataGridGroupToggleEvent<Row>) => void;
    onGroupToggle?: (event: DataGridGroupToggleEvent<Row>) => void;
    aggregates?: readonly DataGridAggregateRow<Row>[];
    aggregateScope?: 'page' | 'all';
    renderRow?: (ctx: DataGridRowContext<Row>) => ReactNode;
    renderEmpty?: (ctx: DataGridEmptyContext) => ReactNode;
    renderError?: (ctx: DataGridDataErrorContext) => ReactNode;
    onViewChange?: (event: DataGridViewChangeEvent) => void;
    getRowProps?: (row: Row, rowIndex: number, ctx: {
        readonly tree?: DataGridTreeContext;
    }) => DataGridElementProps | undefined;
    rowClassName?: (row: Row, rowIndex: number) => string | undefined;
    getCellProps?: (ctx: DataGridCellContext<Row>) => DataGridElementProps | undefined;
    className?: string;
    style?: CSSProperties;
    classNames?: Partial<Record<DataGridPart, string>>;
    styles?: Partial<Record<DataGridPart, CSSProperties>>;
    icons?: DataGridIcons | undefined;
    ref?: Ref<DataGridApi<Row>>;
    id?: string;
    'aria-label'?: string;
    'aria-labelledby'?: string;
    'aria-describedby'?: string;
    onWarning?: (warning: DataGridWarning) => void;
    onReady?: (api: DataGridApi<Row>) => void;
    selection?: boolean | DataGridSelection;
    onBeforeSelectionChange?: (event: DataGridSelectionChangeEvent<Row>) => void;
    onSelectionChange?: (event: DataGridSelectionChangeEvent<Row>) => void;
    keyBindings?: Readonly<Record<string, readonly string[]>>;
    onKeyDown?: (ctx: DataGridKeyDownContext) => void;
    localeText?: DataGridLocaleText;
    persistState?: boolean | DataGridPersistState;
}
```

Members (163):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `data?: readonly Row[] \| DataSource<Row>;` | optional | Rows (reactive: a new array replaces the rows) or a `DataSource` (read once on mount). |
| `columns` | `columns?: readonly DataGridColumn<Row>[];` | optional | Column definitions; `<DataGridColumn>` children are the JSX form (children win over `columns`). |
| `children` | `children?: ReactNode;` | optional | `<DataGridColumn>` and `<DataGridAggregateRow>` elements. |
| `getRowId` | `getRowId?: (row: Row) => RowId \| number;` | optional | Row identity. Default: the `primaryKey` column(s), else the `id` field (with a development warning). |
| `modules` | `modules?: readonly DataGridModule<Row>[];` | optional | Extra core modules (initial only). |
| `features` | `features?: readonly DataGridFeature[];` | optional | *Salmon*. Render features to use synchronously, from `@salmonui/data-grid/features`. Optional: a grid loads the features its props need on demand; features passed here skip that load (no placeholder on a client-only render). Read at creation. |
| `locale` | `locale?: string;` | optional |  |
| `timeZone` | `timeZone?: string;` | optional | IANA time zone for date formatting. Set it for SSR: server and client must format identically. |
| `currency` | `currency?: string;` | optional |  |
| `dir` | `dir?: 'ltr' \| 'rtl' \| 'auto';` | optional | Text direction. `'auto'` follows the `locale` script (`ar`, `he`, `fa`, ... are right-to-left). Default: the inherited `dir`. Reactive. |
| `height` | `height?: number \| string;` | optional | Viewport height: px, any CSS length (`'100%'` needs a fixed-height parent), or `'auto'` (no row virtualization). Default 400. |
| `width` | `width?: number \| string;` | optional |  |
| `rowHeight` | `rowHeight?: number;` | optional | Fixed row height in px. Default 36. |
| `getRowHeight` | `getRowHeight?: (row: Row) => number;` | optional | Per-row fixed height. |
| `estimatedRowHeight` | `estimatedRowHeight?: number;` | optional | Enables measured row heights with this estimate (variable content, templates, wrapping). |
| `headerHeight` | `headerHeight?: number;` | optional | Header row height in px (per stacked level). Default 40. |
| `defaultColumnWidth` | `defaultColumnWidth?: number;` | optional | Width of columns without `width`. Default 160. |
| `virtualization` | `virtualization?: boolean \| DataGridVirtualization;` | optional | Row and column virtualization; `true` (default) for the defaults, `false` renders every row and column. |
| `infiniteScroll` | `infiniteScroll?: boolean \| DataGridInfiniteScroll<Row>;` | optional | Infinite scrolling for remote sources: rows load in blocks as the viewport approaches them. |
| `renderLoadingRow` | `renderLoadingRow?: (ctx: DataGridLoadingRowContext) => ReactNode;` | optional | Placeholder row while its block loads, or after the load failed. Default: the loading text, or the error and a Retry button. |
| `initialRows` | `initialRows?: number;` | optional | Rows in the deterministic server/initial range. Default 20. |
| `initialColumns` | `initialColumns?: number;` | optional | Center columns in the deterministic server/initial range. Default 20. |
| `textWrap` | `textWrap?: DataGridTextWrap;` | optional |  |
| `gridLines` | `gridLines?: DataGridLines;` | optional |  |
| `overflow` | `overflow?: DataGridOverflow;` | optional | Default text overflow of every column. Default `ellipsis`. |
| `highlightOnHover` | `highlightOnHover?: boolean;` | optional | Row hover highlight. Default true. |
| `striped` | `striped?: boolean;` | optional | Alternate row shading. Default true. |
| `resizable` | `resizable?: boolean;` | optional | Pointer and keyboard column resize. Default false; column `resizable` refines it. |
| `resizeMode` | `resizeMode?: 'normal' \| 'auto';` | optional | Column fit. `'normal'` (default): widths are kept, leaving empty space or scrolling. `'auto'`: when the columns are narrower than the grid they stretch proportionally to fill it, and a pointer resize re-fits the other columns. |
| `reorderable` | `reorderable?: boolean;` | optional | Pointer and keyboard column reorder. Default false; column `reorderable` refines it. |
| `onBeforeColumnVisibilityChange` | `onBeforeColumnVisibilityChange?: (event: DataGridColumnVisibilityChangeEvent) => void;` | optional |  |
| `onColumnVisibilityChange` | `onColumnVisibilityChange?: (event: DataGridColumnVisibilityChangeEvent) => void;` | optional |  |
| `onBeforeColumnReorder` | `onBeforeColumnReorder?: (event: DataGridColumnReorderEvent) => void;` | optional |  |
| `onColumnReorder` | `onColumnReorder?: (event: DataGridColumnReorderEvent) => void;` | optional |  |
| `grouping` | `grouping?: boolean \| DataGridGrouping<Row>;` | optional | `true` or settings: grouping UI and behavior. |
| `onBeforeGroupChange` | `onBeforeGroupChange?: (event: DataGridGroupChangeEvent) => void;` | optional |  |
| `onGroupChange` | `onGroupChange?: (event: DataGridGroupChangeEvent) => void;` | optional |  |
| `onBeforeGroupToggle` | `onBeforeGroupToggle?: (event: DataGridGroupToggleEvent<Row>) => void;` | optional |  |
| `onGroupToggle` | `onGroupToggle?: (event: DataGridGroupToggleEvent<Row>) => void;` | optional |  |
| `aggregates` | `aggregates?: readonly DataGridAggregateRow<Row>[];` | optional | Aggregate rows (or `<DataGridAggregateRow>` children). |
| `aggregateScope` | `aggregateScope?: 'page' \| 'all';` | optional | With paging: `page` (default) aggregates the current page, `all` every matching row. |
| `renderRow` | `renderRow?: (ctx: DataGridRowContext<Row>) => ReactNode;` | optional |  |
| `renderEmpty` | `renderEmpty?: (ctx: DataGridEmptyContext) => ReactNode;` | optional |  |
| `renderError` | `renderError?: (ctx: DataGridDataErrorContext) => ReactNode;` | optional | Body content while the data source failed to load. Default: the error message and a Retry button. |
| `onViewChange` | `onViewChange?: (event: DataGridViewChangeEvent) => void;` | optional | Once per committed change of the displayed rows; never on scroll, focus, selection, or expansion. |
| `getRowProps` | `getRowProps?: (row: Row, rowIndex: number, ctx: {     readonly tree?: DataGridTreeContext; }) => DataGridElementProps \| undefined;` | optional | Called for rendered rows only; `ctx.tree` in tree mode. |
| `rowClassName` | `rowClassName?: (row: Row, rowIndex: number) => string \| undefined;` | optional |  |
| `getCellProps` | `getCellProps?: (ctx: DataGridCellContext<Row>) => DataGridElementProps \| undefined;` | optional | Called for rendered cells only. |
| `className` | `className?: string;` | optional |  |
| `style` | `style?: CSSProperties;` | optional |  |
| `classNames` | `classNames?: Partial<Record<DataGridPart, string>>;` | optional |  |
| `styles` | `styles?: Partial<Record<DataGridPart, CSSProperties>>;` | optional |  |
| `icons` | `icons?: DataGridIcons \| undefined;` | optional | Icon overrides by name: a node replaces the built-in SVG icon, `null` hides it. Merges over an enclosing `DataGridIconsProvider`. A component prop, not a theme input. |
| `ref` | `ref?: Ref<DataGridApi<Row>>;` | optional | Receives the grid instance; the root element is `api.element`. |
| `id` | `id?: string;` | optional |  |
| `aria-label` | `'aria-label'?: string;` | optional |  |
| `aria-labelledby` | `'aria-labelledby'?: string;` | optional |  |
| `aria-describedby` | `'aria-describedby'?: string;` | optional |  |
| `onWarning` | `onWarning?: (warning: DataGridWarning) => void;` | optional |  |
| `onReady` | `onReady?: (api: DataGridApi<Row>) => void;` | optional | Fires once after the first commit with the instance. |
| `selection` | `selection?: boolean \| DataGridSelection;` | optional | Selection. On by default: single row selection. `false` turns it off. |
| `onBeforeSelectionChange` | `onBeforeSelectionChange?: (event: DataGridSelectionChangeEvent<Row>) => void;` | optional | Cancel with `event.preventDefault()`. |
| `onSelectionChange` | `onSelectionChange?: (event: DataGridSelectionChangeEvent<Row>) => void;` | optional |  |
| `keyBindings` | `keyBindings?: Readonly<Record<string, readonly string[]>>;` | optional | Replaces the combos of keyboard commands (`{ 'selection.selectAll': ['Mod+Shift+L'] }`). Reactive: a changed value (compared by value) rebuilds the keymap. |
| `onKeyDown` | `onKeyDown?: (ctx: DataGridKeyDownContext) => void;` | optional | Called for every key pressed in the grid before the built-in binding runs. |
| `localeText` | `localeText?: DataGridLocaleText;` | optional | Text overrides over the English catalog (`DATA_GRID_DEFAULT_LOCALE_TEXT`): every visible and assistive string of the grid. Plain JSON with `{param}` templates and plural forms. Reactive. |
| `persistState` | `persistState?: boolean \| DataGridPersistState;` | optional | Saves the user's grid state (column order, widths, visibility, pinning, sorting, filters, grouping, page, search, selection, scroll) and restores it on mount. `true` uses `localStorage` under `salmon-data-grid:<id>` (set `id`); an object sets the key, storage, excluded parts, and an application version. Read on mount. |
| `pinnedColumns` | `pinnedColumns?: DataGridPinnedColumns;` | optional, inherited | The first / last N visible columns are pinned. Reactive. |
| `stickyRows` | `stickyRows?: number;` | optional, inherited | The first N rows of the visible row model stick below the header. |
| `stickyBottomRows` | `stickyBottomRows?: number;` | optional, inherited | The last N rows of the visible row model stick above the footer. |
| `onBeforeColumnPinChange` | `onBeforeColumnPinChange?: ((event: DataGridColumnPinChangeEvent) => void);` | optional, inherited |  |
| `onColumnPinChange` | `onColumnPinChange?: ((event: DataGridColumnPinChangeEvent) => void);` | optional, inherited |  |
| `mergeCells` | `mergeCells?: DataGridMergeCells;` | optional, inherited | DataGrid-wide merging of equal adjacent values (row merging also works under row virtualization). |
| `columnMenu` | `columnMenu?: boolean \| readonly (DataGridMenuItem \| DataGridColumnMenuItemId)[];` | optional, inherited | Column menu; an array lists the items in order (built-in ids or custom items). `column.menu: false` opts a column out. |
| `onBeforeColumnMenuOpen` | `onBeforeColumnMenuOpen?: ((event: DataGridColumnMenuOpenEvent<Row>) => void);` | optional, inherited |  |
| `onBeforeColumnMenuClose` | `onBeforeColumnMenuClose?: ((event: DataGridColumnMenuCloseEvent<Row>) => void);` | optional, inherited |  |
| `onColumnMenuItemClick` | `onColumnMenuItemClick?: ((event: DataGridColumnMenuItemClickEvent<Row>) => void);` | optional, inherited |  |
| `renderColumnMenu` | `renderColumnMenu?: ((ctx: DataGridColumnMenuContext<Row>) => ReactNode);` | optional, inherited |  |
| `columnChooser` | `columnChooser?: boolean \| DataGridColumnChooser<Row>;` | optional, inherited |  |
| `onBeforeColumnChooserOpen` | `onBeforeColumnChooserOpen?: ((event: DataGridColumnChooserOpenEvent<Row>) => void);` | optional, inherited |  |
| `toolbar` | `toolbar?: readonly (DataGridToolbarItem \| DataGridToolbarItemId)[];` | optional, inherited |  |
| `onToolbarItemClick` | `onToolbarItemClick?: ((event: DataGridToolbarItemClickEvent) => void);` | optional, inherited |  |
| `renderToolbar` | `renderToolbar?: ((ctx: DataGridToolbarContext<Row>) => ReactNode);` | optional, inherited |  |
| `contextMenu` | `contextMenu?: boolean \| readonly (DataGridMenuItem \| DataGridContextMenuItemId)[];` | optional, inherited | Context menu; an array lists the items in order. Items that do not apply to the target are dropped. |
| `onBeforeContextMenuOpen` | `onBeforeContextMenuOpen?: ((event: DataGridContextMenuOpenEvent) => void);` | optional, inherited |  |
| `onBeforeContextMenuClose` | `onBeforeContextMenuClose?: ((event: DataGridContextMenuCloseEvent) => void);` | optional, inherited |  |
| `onContextMenuItemClick` | `onContextMenuItemClick?: ((event: DataGridContextMenuItemClickEvent<Row>) => void);` | optional, inherited |  |
| `renderContextMenu` | `renderContextMenu?: ((ctx: DataGridContextMenuContext) => ReactNode);` | optional, inherited |  |
| `onColumnResizeStart` | `onColumnResizeStart?: ((event: DataGridColumnResizeEvent) => void);` | optional, inherited |  |
| `onColumnResize` | `onColumnResize?: ((event: DataGridColumnResizeEvent) => void);` | optional, inherited |  |
| `onColumnResizeEnd` | `onColumnResizeEnd?: ((event: DataGridColumnResizeEvent) => void);` | optional, inherited |  |
| `onColumnDragStart` | `onColumnDragStart?: ((event: DataGridColumnDragEvent) => void);` | optional, inherited |  |
| `onColumnDrag` | `onColumnDrag?: ((event: DataGridColumnDragEvent) => void);` | optional, inherited |  |
| `onColumnDrop` | `onColumnDrop?: ((event: DataGridColumnDragEvent) => void);` | optional, inherited |  |
| `adaptive` | `adaptive?: boolean \| DataGridAdaptive;` | optional, inherited | Adaptive UI (`enableAdaptiveUI`, `adaptiveUIMode`, `rowRenderingMode`): full-screen sheets for menus and dialogs, 44 px touch targets, touch long-press, and optional vertical (card) rows. `true` is `{ target: 'both' }`. |
| `onBeforeAdaptiveDialogOpen` | `onBeforeAdaptiveDialogOpen?: ((event: DataGridAdaptiveDialogOpenEvent) => void);` | optional, inherited |  |
| `onBeforeCopy` | `onBeforeCopy?: ((event: DataGridBeforeCopyEvent) => void);` | optional, inherited |  |
| `onBeforePaste` | `onBeforePaste?: ((event: DataGridBeforePasteEvent) => void);` | optional, inherited |  |
| `onBeforeFill` | `onBeforeFill?: ((event: DataGridBeforeFillEvent) => void);` | optional, inherited |  |
| `editing` | `editing?: boolean \| DataGridEditing<Row>;` | optional, inherited | Editing. `true` for the defaults (row mode). The module is registered when the initial value is set. |
| `onBeforeEditStart` | `onBeforeEditStart?: ((event: DataGridEditStartEvent<Row>) => void);` | optional, inherited |  |
| `onEditStart` | `onEditStart?: ((event: DataGridEditStartEvent<Row>) => void);` | optional, inherited |  |
| `onBeforeCellValueChange` | `onBeforeCellValueChange?: ((event: DataGridCellValueChangeEvent) => void);` | optional, inherited |  |
| `onCellValueChange` | `onCellValueChange?: ((event: DataGridCellValueChangeEvent) => void);` | optional, inherited |  |
| `onBeforeSave` | `onBeforeSave?: ((event: DataGridSaveEvent<Row>) => void);` | optional, inherited |  |
| `onSave` | `onSave?: ((event: DataGridSaveEvent<Row>) => void);` | optional, inherited |  |
| `onBeforeAdd` | `onBeforeAdd?: ((event: DataGridAddEvent<Row>) => void);` | optional, inherited |  |
| `onAdd` | `onAdd?: ((event: DataGridAddEvent<Row>) => void);` | optional, inherited |  |
| `onBeforeDelete` | `onBeforeDelete?: ((event: DataGridDeleteEvent<Row>) => void);` | optional, inherited |  |
| `onDelete` | `onDelete?: ((event: DataGridDeleteEvent<Row>) => void);` | optional, inherited |  |
| `onBeforeEditCancel` | `onBeforeEditCancel?: ((event: DataGridEditCancelEvent) => void);` | optional, inherited |  |
| `onEditCancel` | `onEditCancel?: ((event: DataGridEditCancelEvent) => void);` | optional, inherited |  |
| `onCommandClick` | `onCommandClick?: ((event: DataGridCommandClickEvent<Row>) => void);` | optional, inherited |  |
| `sorting` | `sorting?: boolean \| DataGridSorting;` | optional, inherited | `true` or options: header sorting. |
| `filtering` | `filtering?: boolean \| DataGridFiltering;` | optional, inherited | `true` or options: filtering and its UI. |
| `search` | `search?: boolean \| DataGridSearch;` | optional, inherited | `true` or options: searching. |
| `paging` | `paging?: boolean \| DataGridPaging;` | optional, inherited | `true` or options: paging and the pager. |
| `renderPager` | `renderPager?: ((ctx: DataGridPagerContext) => ReactNode);` | optional, inherited | Replaces the pager. |
| `onBeforeSortChange` | `onBeforeSortChange?: ((event: DataGridSortChangeEvent) => void);` | optional, inherited |  |
| `onSortChange` | `onSortChange?: ((event: DataGridSortChangeEvent) => void);` | optional, inherited |  |
| `onBeforeFilterChange` | `onBeforeFilterChange?: ((event: DataGridFilterChangeEvent) => void);` | optional, inherited |  |
| `onFilterChange` | `onFilterChange?: ((event: DataGridFilterChangeEvent) => void);` | optional, inherited |  |
| `onBeforeFilterMenuOpen` | `onBeforeFilterMenuOpen?: ((event: DataGridFilterMenuOpenEvent) => void);` | optional, inherited |  |
| `onFilterMenuOpen` | `onFilterMenuOpen?: ((event: DataGridFilterMenuOpenEvent) => void);` | optional, inherited |  |
| `onBeforeSearchChange` | `onBeforeSearchChange?: ((event: DataGridSearchChangeEvent) => void);` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((event: DataGridSearchChangeEvent) => void);` | optional, inherited |  |
| `onBeforePageChange` | `onBeforePageChange?: ((event: DataGridPageChangeEvent) => void);` | optional, inherited |  |
| `onPageChange` | `onPageChange?: ((event: DataGridPageChangeEvent) => void);` | optional, inherited |  |
| `onError` | `onError?: ((event: DataGridErrorEvent) => void);` | optional, inherited | An action was rejected (unknown column, page out of range, ...). |
| `renderDetail` | `renderDetail?: ((ctx: DataGridDetailContext<Row>) => ReactNode);` | optional, inherited | Detail row content below each expanded row. |
| `detailHeight` | `detailHeight?: number;` | optional, inherited | Estimated detail row height in px before measurement. Default 150. |
| `hasDetail` | `hasDetail?: ((row: Row) => boolean);` | optional, inherited | Rows without a detail (no toggle). Called for rendered rows only. |
| `loadDetail` | `loadDetail?: ((ctx: DataGridDetailLoadContext<Row>) => unknown);` | optional, inherited | Async detail content, started on expand; `renderDetail` receives `status`, `data`, `error`. |
| `defaultExpandedDetails` | `defaultExpandedDetails?: boolean \| readonly string[];` | optional, inherited | Initially expanded details: `true` for every row, or row ids (initial only). |
| `childGrid` | `childGrid?: DataGridChildGrid<unknown, Row>;` | optional, inherited | Child grid inside each expanded row (hierarchy grid). An inline object sees child rows as `unknown`; `defineChildGrid<Child, Parent>(config)` types the child rows. |
| `onBeforeDetailToggle` | `onBeforeDetailToggle?: ((event: DataGridDetailToggleEvent<Row>) => void);` | optional, inherited |  |
| `onDetailToggle` | `onDetailToggle?: ((event: DataGridDetailToggleEvent<Row>) => void);` | optional, inherited |  |
| `rowDrag` | `rowDrag?: boolean \| DataGridRowDrag;` | optional, inherited | Row drag and drop with a drag handle column; `true` reorders within the grid. |
| `onRowDragStart` | `onRowDragStart?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onRowDrag` | `onRowDrag?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited | Once per animation frame while dragging. |
| `onBeforeRowDrop` | `onBeforeRowDrop?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onRowDrop` | `onRowDrop?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited |  |
| `renderRowDragPreview` | `renderRowDragPreview?: ((ctx: DataGridRowDragPreviewContext<Row>) => ReactNode);` | optional, inherited | Drag preview content (default: the first cell text and the row count). |
| `exportWriters` | `exportWriters?: DataGridExportWriters;` | optional, inherited | Excel and PDF writer loaders; without one the matching toolbar and menu items are disabled. |
| `onBeforeExport` | `onBeforeExport?: ((event: DataGridBeforeExportEvent<Row>) => void);` | optional, inherited |  |
| `onExport` | `onExport?: ((event: DataGridExportEvent<Row>) => void);` | optional, inherited |  |
| `printing` | `printing?: DataGridPrinting<Row>;` | optional, inherited | Print scope and hierarchy mode (`print()` options override them). |
| `onBeforePrint` | `onBeforePrint?: ((event: DataGridBeforePrintEvent) => void);` | optional, inherited |  |
| `onAfterPrint` | `onAfterPrint?: ((event: DataGridAfterPrintEvent) => void);` | optional, inherited |  |
| `loadingIndicator` | `loadingIndicator?: "skeleton" \| "spinner";` | optional, inherited | Built-in loading indicator. Default `spinner`. |
| `renderLoading` | `renderLoading?: ((ctx: DataGridLoadingContext) => ReactNode);` | optional, inherited | Replaces the content of the loading indicator (presentational: the grid announces loading itself). |
| `onRowClick` | `onRowClick?: ((event: DataGridRowClickEvent<Row>) => void);` | optional, inherited | A data row was clicked. `preventDefault()` skips the built-in selection and focus. |
| `onRowDoubleClick` | `onRowDoubleClick?: ((event: DataGridRowClickEvent<Row>) => void);` | optional, inherited | A data row was double-clicked. `preventDefault()` skips the built-in edit start. |
| `onCellClick` | `onCellClick?: ((event: DataGridCellClickEvent<Row>) => void);` | optional, inherited | A cell of a data row was clicked; fires before `onRowClick`. |
| `onCellDoubleClick` | `onCellDoubleClick?: ((event: DataGridCellClickEvent<Row>) => void);` | optional, inherited | A cell of a data row was double-clicked; fires before `onRowDoubleClick`. |
| `recordCommands` | `recordCommands?: boolean;` | optional, inherited | Keeps a serializable log of applied commands (`api.engine.getCommandLog()`). Initial only. Default false. |
| `instrument` | `instrument?: boolean;` | optional, inherited | Exposes store counters (`api.engine.getInstrumentation()`). Initial only. Default false. |
| `tree` | `tree?: boolean \| DataGridTree<Row>;` | optional, inherited | Tree mode: rows with children, indented in the tree column. Read at creation (its options are reactive). |
| `onBeforeTreeToggle` | `onBeforeTreeToggle?: ((event: DataGridTreeToggleEvent<Row>) => void);` | optional, inherited |  |
| `onTreeToggle` | `onTreeToggle?: ((event: DataGridTreeToggleEvent<Row>) => void);` | optional, inherited |  |
| `isRowPinned` | `isRowPinned?: ((row: Row) => boolean);` | optional, inherited | Rows pinned to the top zone. Pinned rows stay visible above the scrolling rows on every page, are left out of `pageSize`, and follow sorting, filtering, search and edits. Pure; read once when the grid is created. Turns row pinning on. |
| `defaultPinnedRows` | `defaultPinnedRows?: readonly string[];` | optional, inherited | Initially pinned row ids (initial only). Turns row pinning on; pass `[]` to only use `pinRows`. |
| `onBeforeFilterBuilderOpen` | `onBeforeFilterBuilderOpen?: ((event: DataGridFilterBuilderOpenEvent) => void);` | optional, inherited |  |
