Skip to content

GridListColDef API

Extended documentation for the GridListColDef interface with detailed information on the module's properties and available APIs.

Demos

Import

import { GridListColDef } from '@mui/x-data-grid-premium'
// or
import { GridListColDef } from '@mui/x-data-grid-pro'
// or
import { GridListColDef } from '@mui/x-data-grid'


Column Definition interface used for the list view column.

Properties

The unique identifier of the column. Used to map with GridRowModel values.

Type:string


Optional

Align cell content.

Type:GridAlignment


Optional

Class name added to cells in this column.

Type:GridCellClassNamePropType<R, V>


Optional

Display mode for the cell:
- 'text': For text-based cells (default)
- 'flex': For cells with HTMLElement children

Type:'text' | 'flex'


Optional

Override the component rendered as cell for this column.

Type:(params: GridRenderCellParams<R, V, F>) => React.ReactNode