Skip to content

GridCellParams Interface

Object passed as parameter in the column GridColDef cell renderer.

Import

import { GridCellParams } from '@mui/x-data-grid-pro';
// or
import { GridCellParams } from '@mui/x-data-grid';

Properties

Name Type Description
cellMode GridCellMode The mode of the cell.
colDef GridStateColDef<Api> The column of the row that the current cell belongs to.
field string The column field of the cell that triggered the event.
formattedValue F The cell value formatted with the column valueFormatter.
getValue (id: GridRowId, field: string) => GridCellValue Get the cell value of a row and field.
hasFocus boolean If true, the cell is the active element.
id GridRowId The grid row id.
isEditable? boolean If true, the cell is editable.
row GridRowModel<R> The row model of the row that the current cell belongs to.
rowNode GridRowTreeNodeConfig The node of the row that the current cell belongs to.
tabIndex 0 | -1 the tabIndex value.
value V The cell value, but if the column has valueGetter, use getValue.