Optional
alignAlign cell content.
Optional
cellClass name added to cells in this column.
Optional
colNumber of columns a cell should span.
Optional
descriptionThe tooltip text shown when the column header name is truncated.
Optional
disableIf true
, the column menu is disabled for this column.
Optional
disableIf true
, this column will not be included in exports.
Optional
disableIf true
, this column cannot be reordered.
Optional
displayDisplay mode for the cell:
Optional
editableIf true
, the cells of the column are editable.
The unique identifier of the column. Used to map with [[GridRowModel]] values.
Optional
filterableIf true
, the column is filterable.
Optional
filterAllows setting the filter operators for this column.
Optional
flexThe flex grow factor of the column. Must be a positive number.
Function that returns the actions to be shown.
The params for each row.
An array of [[GridActionsCell]] elements.
Optional
getThe callback that generates a filtering function for a given quick filter value.
This function can return null
to skip filtering for this value and column.
Optional
getProvide an alternative comparator function for sorting.
Takes precedence over sortComparator
.
The direction of the sort.
The comparator function to use.
Optional
groupableIf true
, the rows can be grouped based on this column values (pro-plan only).
Only available in DataGridPremium.
TODO: Use module augmentation to move it to @mui/x-data-grid-premium
(need to modify how we handle column types default values).
Optional
headerAlign column header content.
Optional
headerClass name added to the column header cell.
Optional
headerThe title displayed in the column header cell.
Optional
hideableIf false
, removes the option to hide this column.
Optional
hideToggle the visibility of the sort icons.
Optional
maxThe maximum width of the column in pixels.
Optional
minThe minimum width of the column in pixels.
Optional
pinnableIf false
, the menu items for column pinning menu will not be rendered.
Only available in DataGridPro.
TODO: Use module augmentation to move it to @mui/x-data-grid-pro
(need to modify how we handle column types default values).
Optional
preCallback fired when the edit props of the cell changes. Processes the props before being saved into the state.
Object containing parameters of the cell being edited.
The new edit cell props.
Optional
renderOverride the component rendered as cell for this column.
Object containing parameters for the renderer.
The element to be rendered.
Optional
renderOverride the component rendered in edit cell mode for this column.
Object containing parameters for the renderer.
The element to be rendered.
Optional
renderOverride the component rendered in the column header cell.
Object containing parameters for the renderer.
The element to be rendered.
Optional
renderAllows to render a component in the column header filter cell.
Object containing parameters for the renderer and inputRef
.
The element to be rendered.
Optional
resizableIf false
, disables resizing for this column.
Optional
rowFunction that returns a specific value to be used in row spanning.
Optional
sortableIf false
, disables sorting for this column.
Optional
sortA comparator function used to sort rows.
Optional
sortingThe order of the sorting sequence.
The type of the column.
Optional
valueFormats the cell value before rendering.
Optional
valueFunction that returns specific data to render in the cell instead of using the field value.
Optional
valueFunction that takes the user-entered value and converts it to a value used internally.
Optional
valueFunction that customizes how the entered value is stored in the row. Only works with cell/row editing.
Optional
widthThe width of the column in pixels.
Column Definition interface used for columns with the
actions
type.Demos