Overview
The default row component used byDataGrid. Can be wrapped via the renderers.renderRow prop to add contexts or customize behavior.
Props
The Row component acceptsRenderRowProps<TRow, TSummaryRow>:
The row data object.
Array of columns currently in the viewport.
Index of the row in the rows array.
Index of the currently selected cell in this row, or
undefined if no cell is selected.Whether this row is selected.
Whether row selection is disabled for this row.
CSS grid-row-start value for positioning.
Index of the last frozen column, or -1 if there are no frozen columns.
Index of the cell being dragged over during fill operations, or
undefined.The cell editor component if a cell in this row is being edited, or
undefined.onRowChange
(column: CalculatedColumn<TRow, TSummaryRow>, rowIdx: number, newRow: TRow) => void
required
Callback to update the row data.
Function to determine custom CSS class names for the row.
Function to programmatically select a cell.
Whether the grid is a TreeDataGrid (role=“treegrid”).
Callback triggered when a pointer becomes active in a cell.
Callback triggered when a cell is clicked.
Callback triggered when a cell is double-clicked.
Callback triggered when a cell is right-clicked.
ARIA row index (1-based) for accessibility.
ARIA selected state for the row.
Custom Row Renderer
To create a completely custom row renderer, implement therenderRow function:
Generics
TRow- Row typeTSummaryRow- Summary row type (default:unknown)