Skip to content

DataGridPremium API

API reference docs for the React DataGridPremium component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { DataGridPremium } from '@mui/x-data-grid-premium/DataGridPremium';
// or
import { DataGridPremium } from '@mui/x-data-grid-premium';

Learn about the difference by reading this guide on minimizing bundle size.

Props

columnsRequired

Set of columns of type GridColDef[].

Type:Array<object>


aggregationFunctions

Aggregation functions available on the grid.

Type:object

Default:GRID_AGGREGATION_FUNCTIONS


aggregationModel

Set the aggregation model of the grid.

Type:object


aggregationRowsScope

Rows used to generate the aggregated value. If filtered, the aggregated values are generated using only the rows currently passing the filtering process. If all, the aggregated values are generated using all the rows.

Type:'all'
| 'filtered'

Default:"filtered"


apiRef

The ref object that allows grid manipulation. Can be instantiated with useGridApiRef().

Type:{ current: object }


aria-label

The label of the Data Grid.

Type:string


aria-labelledby

The id of the element containing a label for the Data Grid.

Type:string


autoHeight

If true, the Data Grid height is dynamic and follow the number of rows in the Data Grid.

Type:bool

Default:false


autoPageSize

If true, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar.

Type:bool

Default:false


autosizeOnMount

If true, columns are autosized after the datagrid is mounted.

Type:bool

Default:false


autosizeOptions

The options for autosize when user-initiated.

Type:{ columns?: Array<string>, expand?: bool, includeHeaders?: bool, includeOutliers?: bool, outliersFactor?: number }


cellModesModel

Controls the modes of the cells.

Type:object


cellSelection

If true, the cell selection mode is enabled.

Type:bool

Default:false


cellSelectionModel

Set the cell selection model of the grid.

Type:object


checkboxSelection

If true, the Data Grid will display an extra column with checkboxes for selecting rows.

Type:bool

Default:false


checkboxSelectionVisibleOnly

If true, the "Select All" header checkbox selects only the rows on the current page. To be used in combination with checkboxSelection. It only works if the pagination is enabled.

Type:bool

Default:false


classes

Override or extend the styles applied to the component.

See CSS classes API below for more details.

Type:object


clipboardCopyCellDelimiter

The character used to separate cell values when copying to the clipboard.

Type:string

Default:'\t'


columnBufferPx

Column region in pixels to render before/after the viewport

Type:number

Default:150


columnHeaderHeight

Sets the height in pixel of the column headers in the Data Grid.

Type:number

Default:56


columnVisibilityModel

Set the column visibility model of the Data Grid. If defined, the Data Grid will ignore the hide property in GridColDef.

Type:object


defaultGroupingExpansionDepth

If above 0, the row children will be expanded up to this depth. If equal to -1, all the row children will be expanded.

Type:number

Default:0


density

Set the density of the Data Grid.

Type:'comfortable'
| 'compact'
| 'standard'

Default:"standard"


detailPanelExpandedRowIds

The row ids to show the detail panel.

Type:Array<number
| string>


disableAggregation

If true, aggregation is disabled.

Type:bool

Default:false


disableAutosize

If true, column autosizing on header separator double-click is disabled.

Type:bool

Default:false


disableChildrenFiltering

If true, the filtering will only be applied to the top level rows when grouping rows with the treeData prop.

Type:bool

Default:false


disableChildrenSorting

If true, the sorting will only be applied to the top level rows when grouping rows with the treeData prop.

Type:bool

Default:false


disableClipboardPaste

If true, the clipboard paste is disabled.

Type:bool

Default:false


disableColumnFilter

If true, column filters are disabled.

Type:bool

Default:false


disableColumnMenu

If true, the column menu is disabled.

Type:bool

Default:false


disableColumnPinning

If true, the column pinning is disabled.

Type:bool

Default:false


disableColumnReorder

If true, reordering columns is disabled.

Type:bool

Default:false


disableColumnResize

If true, resizing columns is disabled.

Type:bool

Default:false


disableColumnSelector

If true, hiding/showing columns is disabled.

Type:bool

Default:false


disableColumnSorting

If true, the column sorting feature will be disabled.

Type:bool

Default:false


disableDensitySelector

If true, the density selector is disabled.

Type:bool

Default:false


disableEval

If true, eval() is not used for performance optimization.

Type:bool

Default:false


disableMultipleColumnsFiltering

If true, filtering with multiple columns is disabled.

Type:bool

Default:false


disableMultipleColumnsSorting

If true, the sorting with multiple columns is disabled.

Type:bool

Default:false


disableMultipleRowSelection

If true, multiple selection using the Ctrl/CMD or Shift key is disabled. The MIT DataGrid will ignore this prop, unless checkboxSelection is enabled.

Type:bool

Default:false (`!props.checkboxSelection` for MIT Data Grid)


disableRowGrouping

If true, the row grouping is disabled.

Type:bool

Default:false


disableRowSelectionOnClick

If true, the selection on click on a row or cell is disabled.

Type:bool

Default:false


disableVirtualization

If true, the virtualization is disabled.

Type:bool

Default:false


editMode

Controls whether to use the cell or row editing.

Type:'cell'
| 'row'

Default:"cell"


estimatedRowCount

Use if the actual rowCount is not known upfront, but an estimation is available. If some rows have children (for instance in the tree data), this number represents the amount of top level rows. Applicable only with paginationMode="server" and when rowCount="-1"

Type:number


experimentalFeatures

Unstable features, breaking changes might be introduced. For each feature, if the flag is not explicitly set to true, then the feature is fully disabled, and neither property nor method calls will have any effect.

Type:{ warnIfFocusStateIsNotSynced?: bool }


filterDebounceMs

The milliseconds delay to wait after a keystroke before triggering filtering.

Type:number

Default:150


filterMode

Filtering can be processed on the server or client-side. Set it to 'server' if you would like to handle filtering on the server-side.

Type:'client'
| 'server'

Default:"client"


filterModel

Set the filter model of the Data Grid.

Type:{ items: Array<{ field: string, id?: number
| string, operator: string, value?: any }>, logicOperator?: 'and'
| 'or', quickFilterExcludeHiddenColumns?: bool, quickFilterLogicOperator?: 'and'
| 'or', quickFilterValues?: array }


getAggregationPosition

Determines the position of an aggregated value.

Type:func

Default:(groupNode) => groupNode == null ? 'footer' : 'inline'

Signature:
function(groupNode: GridGroupNode) => GridAggregationPosition | null
  • groupNode The current group.

Returns: Position of the aggregated value (if null, the group isn't aggregated).


getCellClassName

Function that applies CSS classes dynamically on cells.

Type:func

Signature:
function(params: GridCellParams) => string

Returns: The CSS class to apply to the cell.


getDetailPanelContent

Function that returns the element to render in row detail.

Type:func

Signature:
function(params: GridRowParams) => React.JSX.Element

Returns: The row detail element.


getDetailPanelHeight

Function that returns the height of the row detail panel.

Type:func

Default:"() => 500"

Signature:
function(params: GridRowParams) => number | string

Returns: The height in pixels or "auto" to use the content height.


getEstimatedRowHeight

Function that returns the estimated height for a row. Only works if dynamic row height is used. Once the row height is measured this value is discarded.

Type:func

Signature:
function(params: GridRowHeightParams) => number | null
  • params With all properties from GridRowHeightParams.

Returns: The estimated row height value. If null or undefined then the default row height, based on the density, is applied.


getRowClassName

Function that applies CSS classes dynamically on rows.

Type:func

Signature:
function(params: GridRowClassNameParams) => string

Returns: The CSS class to apply to the row.


getRowHeight

Function that sets the row height per row.

Type:func

Signature:
function(params: GridRowHeightParams) => GridRowHeightReturnValue
  • params With all properties from GridRowHeightParams.

Returns: The row height value. If null or undefined then the default row height is applied. If "auto" then the row height is calculated based on the content.


getRowId

Return the id of a given GridRowModel.

Type:func


getRowSpacing

Function that allows to specify the spacing between rows.

Type:func

Signature:
function(params: GridRowSpacingParams) => GridRowSpacing

Returns: The row spacing values.


getTreeDataPath

Determines the path of a row in the tree data. For instance, a row with the path ["A", "B"] is the child of the row with the path ["A"]. Note that all paths must contain at least one element.

Type:func

Signature:
function(row: R) => Array
  • row The row from which we want the path.

Returns: The path to the row.


groupingColDef

The grouping column used by the tree data.

Type:func
| object


headerFilters

If true, enables the data grid filtering on header feature.

Type:bool

Default:false


hideFooter

If true, the footer component is hidden.

Type:bool

Default:false


hideFooterPagination

If true, the pagination component in the footer is hidden.

Type:bool

Default:false


hideFooterRowCount

If true, the row count in the footer is hidden. It has no effect if the pagination is enabled.

Type:bool

Default:false


hideFooterSelectedRowCount

If true, the selected row count in the footer is hidden.

Type:bool

Default:false


ignoreDiacritics

If true, the diacritics (accents) are ignored when filtering or quick filtering. E.g. when filter value is cafe, the rows with café will be visible.

Type:bool

Default:false


ignoreValueFormatterDuringExport

If true, the Data Grid will not use valueFormatter when exporting to CSV or copying to clipboard. If an object is provided, you can choose to ignore the valueFormatter for CSV export or clipboard export.

Type:{ clipboardExport?: bool, csvExport?: bool }
| bool

Default:false


initialState

The initial state of the DataGridPremium. The data in it is set in the state on initialization but isn't controlled. If one of the data in initialState is also being controlled, then the control state wins.

Type:object


isCellEditable

Callback fired when a cell is rendered, returns true if the cell is editable.

Type:func

Signature:
function(params: GridCellParams) => boolean

Returns: A boolean indicating if the cell is editable.


isGroupExpandedByDefault

Determines if a group should be expanded after its creation. This prop takes priority over the defaultGroupingExpansionDepth prop.

Type:func

Signature:
function(node: GridGroupNode) => boolean
  • node The node of the group to test.

Returns: A boolean indicating if the group is expanded.


isRowSelectable

Determines if a row can be selected.

Type:func

Signature:
function(params: GridRowParams) => boolean

Returns: A boolean indicating if the cell is selectable.


keepColumnPositionIfDraggedOutside

If true, moving the mouse pointer outside the grid before releasing the mouse button in a column re-order action will not cause the column to jump back to its original position.

Type:bool

Default:false


keepNonExistentRowsSelected

If true, the selection model will retain selected rows that do not exist. Useful when using server side pagination and row selections need to be retained when changing pages.

Type:bool

Default:false


loading

If true, a loading overlay is displayed.

Type:bool


localeText

Set the locale text of the Data Grid. You can find all the translation keys supported in the source in the GitHub repository.

Type:object


logger

Pass a custom logger in the components that implements the Logger interface.

Type:{ debug: func, error: func, info: func, warn: func }

Default:console


logLevel

Allows to pass the logging level or false to turn off logging.

Type:'debug'
| 'error'
| 'info'
| 'warn'
| false

Default:"error" ("warn" in dev mode)


nonce

Nonce of the inline styles for Content Security Policy.

Type:string


onAggregationModelChange

Callback fired when the row grouping model changes.

Type:func

Signature:
function(model: GridAggregationModel, details: GridCallbackDetails) => void
  • model The aggregated columns.
  • details Additional details for this callback.

onBeforeClipboardPasteStart

Callback fired before the clipboard paste operation starts. Use it to confirm or cancel the paste operation.

Type:func

Signature:
function(params: object) => void
  • params Params passed to the callback.

onCellClick

Callback fired when any cell is clicked.

Type:func

Signature:
function(params: GridCellParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridCellParams.
  • event The event object.
  • details Additional details for this callback.

onCellDoubleClick

Callback fired when a double click event comes from a cell element.

Type:func

Signature:
function(params: GridCellParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridCellParams.
  • event The event object.
  • details Additional details for this callback.

onCellEditStart

Callback fired when the cell turns to edit mode.

Type:func

Signature:
function(params: GridCellParams, event: MuiEvent) => void
  • params With all properties from GridCellParams.
  • event The event that caused this prop to be called.

onCellEditStop

Callback fired when the cell turns to view mode.

Type:func

Signature:
function(params: GridCellParams, event: MuiEvent) => void
  • params With all properties from GridCellParams.
  • event The event that caused this prop to be called.

onCellKeyDown

Callback fired when a keydown event comes from a cell element.

Type:func

Signature:
function(params: GridCellParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridCellParams.
  • event The event object.
  • details Additional details for this callback.

onCellModesModelChange

Callback fired when the cellModesModel prop changes.

Type:func

Signature:
function(cellModesModel: GridCellModesModel, details: GridCallbackDetails) => void
  • cellModesModel Object containing which cells are in "edit" mode.
  • details Additional details for this callback.

onCellSelectionModelChange

Callback fired when the selection state of one or multiple cells changes.

Type:func

Signature:
function(cellSelectionModel: GridCellSelectionModel, details: GridCallbackDetails) => void
  • cellSelectionModel Object in the shape of GridCellSelectionModel containing the selected cells.
  • details Additional details for this callback.

onClipboardCopy

Callback called when the data is copied to the clipboard.

Type:func

Signature:
function(data: string) => void
  • data The data copied to the clipboard.

onClipboardPasteEnd

Callback fired when the clipboard paste operation ends.

Type:func


onClipboardPasteStart

Callback fired when the clipboard paste operation starts.

Type:func


onColumnHeaderClick

Callback fired when a click event comes from a column header element.

Type:func

Signature:
function(params: GridColumnHeaderParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnHeaderParams.
  • event The event object.
  • details Additional details for this callback.

onColumnHeaderDoubleClick

Callback fired when a double click event comes from a column header element.

Type:func

Signature:
function(params: GridColumnHeaderParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnHeaderParams.
  • event The event object.
  • details Additional details for this callback.

onColumnHeaderEnter

Callback fired when a mouse enter event comes from a column header element.

Type:func

Signature:
function(params: GridColumnHeaderParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnHeaderParams.
  • event The event object.
  • details Additional details for this callback.

onColumnHeaderLeave

Callback fired when a mouse leave event comes from a column header element.

Type:func

Signature:
function(params: GridColumnHeaderParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnHeaderParams.
  • event The event object.
  • details Additional details for this callback.

onColumnHeaderOut

Callback fired when a mouseout event comes from a column header element.

Type:func

Signature:
function(params: GridColumnHeaderParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnHeaderParams.
  • event The event object.
  • details Additional details for this callback.

onColumnHeaderOver

Callback fired when a mouseover event comes from a column header element.

Type:func

Signature:
function(params: GridColumnHeaderParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnHeaderParams.
  • event The event object.
  • details Additional details for this callback.

onColumnOrderChange

Callback fired when a column is reordered.

Type:func

Signature:
function(params: GridColumnOrderChangeParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridColumnOrderChangeParams.
  • event The event object.
  • details Additional details for this callback.

onColumnResize

Callback fired while a column is being resized.

Type:func

Signature:
function(params: GridColumnResizeParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnResizeParams.
  • event The event object.
  • details Additional details for this callback.

onColumnVisibilityModelChange

Callback fired when the column visibility model changes.

Type:func

Signature:
function(model: GridColumnVisibilityModel, details: GridCallbackDetails) => void
  • model The new model.
  • details Additional details for this callback.

onColumnWidthChange

Callback fired when the width of a column is changed.

Type:func

Signature:
function(params: GridColumnResizeParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridColumnResizeParams.
  • event The event object.
  • details Additional details for this callback.

onDensityChange

Callback fired when the density changes.

Type:func

Signature:
function(density: GridDensity) => void
  • density New density value.

onDetailPanelExpandedRowIdsChange

Callback fired when the detail panel of a row is opened or closed.

Type:func

Signature:
function(ids: Array, details: GridCallbackDetails) => void
  • ids The ids of the rows which have the detail panel open.
  • details Additional details for this callback.

onExcelExportStateChange

Callback fired when the state of the Excel export changes.

Type:func

Signature:
function(inProgress: string) => void
  • inProgress Indicates if the task is in progress.

onFetchRows

Callback fired when rowCount is set and the next batch of virtualized rows is rendered.

Type:func

Signature:
function(params: GridFetchRowsParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridFetchRowsParams.
  • event The event object.
  • details Additional details for this callback.

onFilterModelChange

Callback fired when the Filter model changes before the filters are applied.

Type:func

Signature:
function(model: GridFilterModel, details: GridCallbackDetails) => void
  • model With all properties from GridFilterModel.
  • details Additional details for this callback.

onMenuClose

Callback fired when the menu is closed.

Type:func

Signature:
function(params: GridMenuParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridMenuParams.
  • event The event object.
  • details Additional details for this callback.

onMenuOpen

Callback fired when the menu is opened.

Type:func

Signature:
function(params: GridMenuParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridMenuParams.
  • event The event object.
  • details Additional details for this callback.

onPaginationMetaChange

Callback fired when the pagination meta has changed.

Type:func

Signature:
function(paginationMeta: GridPaginationMeta) => void
  • paginationMeta Updated pagination meta.

onPaginationModelChange

Callback fired when the pagination model has changed.

Type:func

Signature:
function(model: GridPaginationModel, details: GridCallbackDetails) => void
  • model Updated pagination model.
  • details Additional details for this callback.

onPinnedColumnsChange

Callback fired when the pinned columns have changed.

Type:func

Signature:
function(pinnedColumns: GridPinnedColumnFields, details: GridCallbackDetails) => void
  • pinnedColumns The changed pinned columns.
  • details Additional details for this callback.

onPreferencePanelClose

Callback fired when the preferences panel is closed.

Type:func

Signature:
function(params: GridPreferencePanelParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridPreferencePanelParams.
  • event The event object.
  • details Additional details for this callback.

onPreferencePanelOpen

Callback fired when the preferences panel is opened.

Type:func

Signature:
function(params: GridPreferencePanelParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridPreferencePanelParams.
  • event The event object.
  • details Additional details for this callback.

onProcessRowUpdateError

Callback called when processRowUpdate throws an error or rejects.

Type:func

Signature:
function(error: any) => void
  • error The error thrown.

onResize

Callback fired when the Data Grid is resized.

Type:func

Signature:
function(containerSize: ElementSize, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • containerSize With all properties from ElementSize.
  • event The event object.
  • details Additional details for this callback.

onRowClick

Callback fired when a row is clicked. Not called if the target clicked is an interactive element added by the built-in columns.

Type:func

Signature:
function(params: GridRowParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from GridRowParams.
  • event The event object.
  • details Additional details for this callback.

onRowCountChange

Callback fired when the row count has changed.

Type:func

Signature:
function(count: number) => void
  • count Updated row count.

onRowDoubleClick

Callback fired when a double click event comes from a row container element.

Type:func

Signature:
function(params: GridRowParams, event: MuiEvent, details: GridCallbackDetails) => void
  • params With all properties from RowParams.
  • event The event object.
  • details Additional details for this callback.

onRowEditStart

Callback fired when the row turns to edit mode.

Type:func

Signature:
function(params: GridRowParams, event: MuiEvent) => void
  • params With all properties from GridRowParams.
  • event The event that caused this prop to be called.

onRowEditStop

Callback fired when the row turns to view mode.

Type:func

Signature:
function(params: GridRowParams, event: MuiEvent) => void
  • params With all properties from GridRowParams.
  • event The event that caused this prop to be called.

onRowGroupingModelChange

Callback fired when the row grouping model changes.

Type:func

Signature:
function(model: GridRowGroupingModel, details: GridCallbackDetails) => void
  • model Columns used as grouping criteria.
  • details Additional details for this callback.

onRowModesModelChange

Callback fired when the rowModesModel prop changes.

Type:func

Signature:
function(rowModesModel: GridRowModesModel, details: GridCallbackDetails) => void
  • rowModesModel Object containing which rows are in "edit" mode.
  • details Additional details for this callback.

onRowOrderChange

Callback fired when a row is being reordered.

Type:func

Signature:
function(params: GridRowOrderChangeParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridRowOrderChangeParams.
  • event The event object.
  • details Additional details for this callback.

onRowSelectionModelChange

Callback fired when the selection state of one or multiple rows changes.

Type:func

Signature:
function(rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void
  • rowSelectionModel With all the row ids GridSelectionModel.
  • details Additional details for this callback.

onRowsScrollEnd

Callback fired when scrolling to the bottom of the grid viewport.

Type:func

Signature:
function(params: GridRowScrollEndParams, event: MuiEvent<{}>, details: GridCallbackDetails) => void
  • params With all properties from GridRowScrollEndParams.
  • event The event object.
  • details Additional details for this callback.

onSortModelChange

Callback fired when the sort model changes before a column is sorted.

Type:func

Signature:
function(model: GridSortModel, details: GridCallbackDetails) => void
  • model With all properties from GridSortModel.
  • details Additional details for this callback.

pageSizeOptions

Select the pageSize dynamically using the component UI.

Type:Array<number
| { label: string, value: number }>

Default:[25, 50, 100]


pagination

If true, pagination is enabled.

Type:bool

Default:false


paginationMeta

The extra information about the pagination state of the Data Grid. Only applicable with paginationMode="server".

Type:{ hasNextPage?: bool }


paginationMode

Pagination can be processed on the server or client-side. Set it to 'client' if you would like to handle the pagination on the client-side. Set it to 'server' if you would like to handle the pagination on the server-side.

Type:'client'
| 'server'

Default:"client"


paginationModel

The pagination model of type GridPaginationModel which refers to current page and pageSize.

Type:{ page: number, pageSize: number }


pinnedColumns

The column fields to display pinned to left or right.

Type:object


pinnedRows

Rows data to pin on top or bottom.

Type:{ bottom?: Array<object>, top?: Array<object> }


processRowUpdate

Callback called before updating a row with new values in the row and cell editing.

Type:func

Signature:
function(newRow: R, oldRow: R) => Promise | R
  • newRow Row object with the new values.
  • oldRow Row object with the old values.

Returns: The final values to update the row.


resizeThrottleMs

The milliseconds throttle delay for resizing the grid.

Type:number

Default:60


rowBufferPx

Row region in pixels to render before/after the viewport

Type:number

Default:150


rowCount

Set the total number of rows, if it is different from the length of the value rows prop. If some rows have children (for instance in the tree data), this number represents the amount of top level rows. Only works with paginationMode="server", ignored when paginationMode="client".

Type:number


rowGroupingColumnMode

If single, all the columns that are grouped are represented in the same grid column. If multiple, each column that is grouped is represented in its own grid column.

Type:'multiple'
| 'single'

Default:'single'


rowGroupingModel

Set the row grouping model of the grid.

Type:Array<string>


rowHeight

Sets the height in pixel of a row in the Data Grid.

Type:number

Default:52


rowModesModel

Controls the modes of the rows.

Type:object


rowPositionsDebounceMs

The milliseconds delay to wait after measuring the row height before recalculating row positions. Setting it to a lower value could be useful when using dynamic row height, but might reduce performance when displaying a large number of rows.

Type:number

Default:166


rowReordering

If true, the reordering of rows is enabled.

Type:bool

Default:false


rows

Set of rows of type GridRowsProp.

Type:Array<object>

Default:[]


rowSelection

If false, the row selection mode is disabled.

Type:bool

Default:true


rowSelectionModel

Sets the row selection model of the Data Grid.

Type:Array<number
| string>
| number
| string


rowsLoadingMode

Loading rows can be processed on the server or client-side. Set it to 'client' if you would like enable infnite loading. Set it to 'server' if you would like to enable lazy loading. * @default "client"

Type:'client'
| 'server'


rowSpacingType

Sets the type of space between rows added by getRowSpacing.

Type:'border'
| 'margin'

Default:"margin"


scrollbarSize

Override the height/width of the Data Grid inner scrollbar.

Type:number


scrollEndThreshold

Set the area in px at the bottom of the grid viewport where onRowsScrollEnd is called.

Type:number

Default:80


showCellVerticalBorder

If true, the vertical borders of the cells are displayed.

Type:bool

Default:false


showColumnVerticalBorder

If true, the right border of the column headers are displayed.

Type:bool

Default:false


slotProps

Overridable components props dynamically passed to the component at rendering.

Type:object


slots

Overridable components.

See Slots API below for more details.

Type:object


sortingMode

Sorting can be processed on the server or client-side. Set it to 'client' if you would like to handle sorting on the client-side. Set it to 'server' if you would like to handle sorting on the server-side.

Type:'client'
| 'server'

Default:"client"


sortingOrder

The order of the sorting sequence.

Type:Array<'asc'
| 'desc'>

Default:['asc', 'desc', null]


sortModel

Set the sort model of the Data Grid.

Type:Array<{ field: string, sort?: 'asc'
| 'desc' }>


splitClipboardPastedText

The function is used to split the pasted text into rows and cells.

Type:func

Signature:
function(text: string) => void
  • text The text pasted from the clipboard.

sx

The system prop that allows defining system overrides as well as additional CSS styles.

See the `sx` page for more details.

Type:Array<func
| object
| bool>
| func
| object


throttleRowsMs

If positive, the Data Grid will throttle updates coming from apiRef.current.updateRows and apiRef.current.setRows. It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.

Type:number

Default:0


treeData

If true, the rows will be gathered in a tree structure according to the getTreeDataPath prop.

Type:bool

Default:false


The ref is forwarded to the root element.

Slots

headerFilterCell

Component responsible for showing menu adornment in Header filter row

Default component: GridHeaderFilterCell


headerFilterMenu

Component responsible for showing menu in Header filter row

Default component: GridHeaderFilterMenu


baseChip

The custom Chip component used in the grid.

Default component: Chip


cell

Component rendered for each cell.

Class name: .MuiDataGridPremium-cell

Default component: GridCell


skeletonCell

Component rendered for each skeleton cell.

Default component: GridSkeletonCell


columnHeaderFilterIconButton

Filter icon component rendered in each column header.

Default component: GridColumnHeaderFilterIconButton


columnMenu

Column menu component rendered by clicking on the 3 dots "kebab" icon in column headers.

Default component: GridColumnMenu


columnHeaders

Component responsible for rendering the column headers.

Class name: .MuiDataGridPremium-columnHeaders

Default component: DataGridColumnHeaders


detailPanels

Component responsible for rendering the detail panels.

Class name: .MuiDataGridPremium-detailPanels

Default component: GridDetailPanels


footer

Footer component rendered at the bottom of the grid viewport.

Default component: GridFooter


footerRowCount

Row count component rendered in the footer

Default component: GridRowCount


toolbar

Toolbar component rendered inside the Header component.

Default component: null


loadingOverlay

Loading overlay component rendered when the grid is in a loading state.

Default component: GridLoadingOverlay


noResultsOverlay

No results overlay component rendered when the grid has no results after filtering.

Default component: GridNoResultsOverlay


noRowsOverlay

No rows overlay component rendered when the grid has no rows.

Default component: GridNoRowsOverlay


pagination

Pagination component rendered in the grid footer by default.

Default component: Pagination


filterPanel

Filter panel component rendered when clicking the filter button.

Default component: GridFilterPanel


columnsPanel

GridColumns panel component rendered when clicking the columns button.

Default component: GridColumnsPanel


columnsManagement

Component used inside Grid Columns panel to manage columns.

Class name: .MuiDataGridPremium-columnsManagement

Default component: GridColumnsManagement


panel

Panel component wrapping the filters and columns panels.

Class name: .MuiDataGridPremium-panel

Default component: GridPanel


row

Component rendered for each row.

Class name: .MuiDataGridPremium-row

Default component: GridRow


baseCheckbox

The custom Checkbox component used in the grid for both header and cells.

Default component: Checkbox


baseInputAdornment

The custom InputAdornment component used in the grid.

Default component: InputAdornment


baseTextField

The custom TextField component used in the grid.

Default component: TextField


baseFormControl

The custom FormControl component used in the grid.

Default component: FormControl


baseSelect

The custom Select component used in the grid.

Default component: Select


baseButton

The custom Button component used in the grid.

Default component: Button


baseIconButton

The custom IconButton component used in the grid.

Default component: IconButton


baseTooltip

The custom Tooltip component used in the grid.

Default component: Tooltip


basePopper

The custom Popper component used in the grid.

Default component: Popper


baseInputLabel

The custom InputLabel component used in the grid.

Default component: InputLabel


baseSelectOption

The custom SelectOption component used in the grid.

Default component: MenuItem


booleanCellTrueIcon

Icon displayed on the boolean cell to represent the true value.

Default component: GridCheckIcon


booleanCellFalseIcon

Icon displayed on the boolean cell to represent the false value.

Default component: GridCloseIcon


columnMenuIcon

Icon displayed on the side of the column header title to display the filter input component.

Default component: GridTripleDotsVerticalIcon


openFilterButtonIcon

Icon displayed on the open filter button present in the toolbar by default.

Default component: GridFilterListIcon


columnFilteredIcon

Icon displayed on the column header menu to show that a filter has been applied to the column.

Default component: GridFilterAltIcon


columnSelectorIcon

Icon displayed on the column menu selector tab.

Default component: GridColumnIcon


columnUnsortedIcon

Icon displayed on the side of the column header title when unsorted.

Default component: GridColumnUnsortedIcon


columnSortedAscendingIcon

Icon displayed on the side of the column header title when sorted in ascending order.

Default component: GridArrowUpwardIcon


columnSortedDescendingIcon

Icon displayed on the side of the column header title when sorted in descending order.

Default component: GridArrowDownwardIcon


columnResizeIcon

Icon displayed in between two column headers that allows to resize the column header.

Default component: GridSeparatorIcon


densityCompactIcon

Icon displayed on the compact density option in the toolbar.

Default component: GridViewHeadlineIcon


densityStandardIcon

Icon displayed on the standard density option in the toolbar.

Default component: GridTableRowsIcon


densityComfortableIcon

Icon displayed on the "comfortable" density option in the toolbar.

Default component: GridViewStreamIcon


exportIcon

Icon displayed on the open export button present in the toolbar by default.

Default component: GridSaveAltIcon


moreActionsIcon

Icon displayed on the actions column type to open the menu.

Default component: GridMoreVertIcon


treeDataExpandIcon

Icon displayed on the tree data toggling column when the children are collapsed

Default component: GridKeyboardArrowRight


treeDataCollapseIcon

Icon displayed on the tree data toggling column when the children are expanded

Default component: GridExpandMoreIcon


groupingCriteriaExpandIcon

Icon displayed on the grouping column when the children are collapsed

Default component: GridKeyboardArrowRight


groupingCriteriaCollapseIcon

Icon displayed on the grouping column when the children are expanded

Default component: GridExpandMoreIcon


detailPanelExpandIcon

Icon displayed on the detail panel toggle column when collapsed.

Default component: GridAddIcon


detailPanelCollapseIcon

Icon displayed on the detail panel toggle column when expanded.

Default component: GridRemoveIcon


filterPanelAddIcon

Icon displayed for deleting the filter from filter panel.

Default component: GridAddIcon


filterPanelDeleteIcon

Icon displayed for deleting the filter from filter panel.

Default component: GridDeleteIcon


filterPanelRemoveAllIcon

Icon displayed for deleting all the active filters from filter panel.

Default component: GridDeleteForeverIcon


rowReorderIcon

Icon displayed on the reorder column type to reorder a row.

Default component: GridDragIcon


quickFilterIcon

Icon displayed on the quick filter input.

Default component: GridSearchIcon


quickFilterClearIcon

Icon displayed on the quick filter reset input.

Default component: GridCloseIcon


columnMenuHideIcon

Icon displayed in column menu for hiding column

Default component: GridVisibilityOffIcon


columnMenuSortAscendingIcon

Icon displayed in column menu for ascending sort

Default component: GridArrowUpwardIcon


columnMenuSortDescendingIcon

Icon displayed in column menu for descending sort

Default component: GridArrowDownwardIcon


columnMenuFilterIcon

Icon displayed in column menu for filter

Default component: GridFilterAltIcon


columnMenuManageColumnsIcon

Icon displayed in column menu for showing all columns

Default component: GridViewColumnIcon


columnMenuClearIcon

Icon displayed in column menu for clearing values

Default component: GridClearIcon


loadIcon

Icon displayed on the input while processing.

Default component: GridLoadIcon


columnReorderIcon

Icon displayed on the column reorder button.

Default component: GridDragIcon


columnMenuPinLeftIcon

Icon displayed in column menu for left pinning

Default component: GridPushPinLeftIcon


columnMenuPinRightIcon

Icon displayed in column menu for right pinning

Default component: GridPushPinRightIcon


columnMenuUngroupIcon

Icon displayed in column menu for ungrouping

Default component: GridWorkspacesIcon


columnMenuGroupIcon

Icon displayed in column menu for grouping

Default component: GridGroupWorkIcon


columnMenuAggregationIcon

Icon displayed in column menu for aggregation

Default component: GridFunctionsIcon


CSS classes

These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.

.MuiDataGridPremium-actionsCell

Styles applied to the root element of the cell with type="actions".

Rule name:actionsCell


.MuiDataGridPremium-aggregationColumnHeader

Styles applied to the root element of the column header when aggregated.

Rule name:aggregationColumnHeader


.MuiDataGridPremium-aggregationColumnHeader--alignCenter

Styles applied to the root element of the header when aggregation if headerAlign="center".

Rule name:aggregationColumnHeader--alignCenter


.MuiDataGridPremium-aggregationColumnHeader--alignLeft

Styles applied to the root element of the header when aggregation if headerAlign="left".

Rule name:aggregationColumnHeader--alignLeft


.MuiDataGridPremium-aggregationColumnHeader--alignRight

Styles applied to the root element of the header when aggregation if headerAlign="right".

Rule name:aggregationColumnHeader--alignRight


.MuiDataGridPremium-aggregationColumnHeaderLabel

Styles applied to the aggregation label in the column header when aggregated.

Rule name:aggregationColumnHeaderLabel


.MuiDataGridPremium-autoHeight

Styles applied to the root element if autoHeight={true}.

Rule name:autoHeight


.MuiDataGridPremium-autosizing

Styles applied to the root element while it is being autosized.

Rule name:autosizing


.MuiDataGridPremium-booleanCell

Styles applied to the icon of the boolean cell.

Rule name:booleanCell


.MuiDataGridPremium-cell--editable

Styles applied to the cell element if the cell is editable.

Rule name:cell--editable


.MuiDataGridPremium-cell--editing

Styles applied to the cell element if the cell is in edit mode.

Rule name:cell--editing


.MuiDataGridPremium-cell--flex

Styles applied to the cell element in flex display mode.

Rule name:cell--flex


.MuiDataGridPremium-cell--pinnedLeft

Styles applied to the cell element if it is pinned to the left.

Rule name:cell--pinnedLeft


.MuiDataGridPremium-cell--pinnedRight

Styles applied to the cell element if it is pinned to the right.

Rule name:cell--pinnedRight


.MuiDataGridPremium-cell--rangeBottom

Styles applied to the cell element if it is at the bottom edge of a cell selection range.

Rule name:cell--rangeBottom


.MuiDataGridPremium-cell--rangeLeft

Styles applied to the cell element if it is at the left edge of a cell selection range.

Rule name:cell--rangeLeft


.MuiDataGridPremium-cell--rangeRight

Styles applied to the cell element if it is at the right edge of a cell selection range.

Rule name:cell--rangeRight


.MuiDataGridPremium-cell--rangeTop

Styles applied to the cell element if it is at the top edge of a cell selection range.

Rule name:cell--rangeTop


.MuiDataGridPremium-cell--selectionMode

Styles applied to the cell element if it is in a cell selection range.

Rule name:cell--selectionMode


.MuiDataGridPremium-cell--textCenter

Styles applied to the cell element if align="center".

Rule name:cell--textCenter


.MuiDataGridPremium-cell--textLeft

Styles applied to the cell element if align="left".

Rule name:cell--textLeft


.MuiDataGridPremium-cell--textRight

Styles applied to the cell element if align="right".

Rule name:cell--textRight


.MuiDataGridPremium-cell--withLeftBorder

Styles applied the cell if showColumnVerticalBorder={true}.

Rule name:cell--withLeftBorder


.MuiDataGridPremium-cell--withRightBorder

Styles applied the cell if showColumnVerticalBorder={true}.

Rule name:cell--withRightBorder


.MuiDataGridPremium-cellCheckbox

Styles applied to the cell checkbox element.

Rule name:cellCheckbox


.MuiDataGridPremium-cellEmpty

Styles applied to the empty cell element.

Rule name:cellEmpty


.MuiDataGridPremium-cellSkeleton

Styles applied to the skeleton cell element.

Rule name:cellSkeleton


.MuiDataGridPremium-checkboxInput

Styles applied to the selection checkbox element.

Rule name:checkboxInput


.MuiDataGridPremium-columnHeader

Styles applied to the column header element.

Rule name:columnHeader


.MuiDataGridPremium-columnHeader--alignCenter

Styles applied to the column header if headerAlign="center".

Rule name:columnHeader--alignCenter


.MuiDataGridPremium-columnHeader--alignLeft

Styles applied to the column header if headerAlign="left".

Rule name:columnHeader--alignLeft


.MuiDataGridPremium-columnHeader--alignRight

Styles applied to the column header if headerAlign="right".

Rule name:columnHeader--alignRight


.MuiDataGridPremium-columnHeader--dragging

Styles applied to the floating column header element when it is dragged.

Rule name:columnHeader--dragging


.MuiDataGridPremium-columnHeader--emptyGroup

Styles applied to the empty column group header cell.

Rule name:columnHeader--emptyGroup


.MuiDataGridPremium-columnHeader--filledGroup

Styles applied to the column group header cell if not empty.

Rule name:columnHeader--filledGroup


.MuiDataGridPremium-columnHeader--filtered

Styles applied to the column header if the column has a filter applied to it.

Rule name:columnHeader--filtered


.MuiDataGridPremium-columnHeader--moving

Styles applied to the column header if it is being dragged.

Rule name:columnHeader--moving


.MuiDataGridPremium-columnHeader--numeric

Styles applied to the column header if the type of the column is number.

Rule name:columnHeader--numeric


.MuiDataGridPremium-columnHeader--pinnedLeft

Rule name:columnHeader--pinnedLeft


.MuiDataGridPremium-columnHeader--pinnedRight

Rule name:columnHeader--pinnedRight


.MuiDataGridPremium-columnHeader--sortable

Styles applied to the column header if the column is sortable.

Rule name:columnHeader--sortable


.MuiDataGridPremium-columnHeader--sorted

Styles applied to the column header if the column is sorted.

Rule name:columnHeader--sorted


.MuiDataGridPremium-columnHeader--withLeftBorder

Rule name:columnHeader--withLeftBorder


.MuiDataGridPremium-columnHeader--withRightBorder

Styles applied the column header if showColumnVerticalBorder={true}.

Rule name:columnHeader--withRightBorder


.MuiDataGridPremium-columnHeaderCheckbox

Styles applied to the header checkbox cell element.

Rule name:columnHeaderCheckbox


.MuiDataGridPremium-columnHeaderDraggableContainer

Styles applied to the column header's draggable container element.

Rule name:columnHeaderDraggableContainer


.MuiDataGridPremium-columnHeaderTitle

Styles applied to the column header's title element;

Rule name:columnHeaderTitle


.MuiDataGridPremium-columnHeaderTitleContainer

Styles applied to the column header's title container element.

Rule name:columnHeaderTitleContainer


.MuiDataGridPremium-columnHeaderTitleContainerContent

Styles applied to the column header's title excepted buttons.

Rule name:columnHeaderTitleContainerContent


.MuiDataGridPremium-columnSeparator

Styles applied to the column header separator element.

Rule name:columnSeparator


.MuiDataGridPremium-columnSeparator--resizable

Styles applied to the column header separator if the column is resizable.

Rule name:columnSeparator--resizable


.MuiDataGridPremium-columnSeparator--resizing

Styles applied to the column header separator if the column is being resized.

Rule name:columnSeparator--resizing


.MuiDataGridPremium-columnSeparator--sideLeft

Styles applied to the column header separator if the side is "left".

Rule name:columnSeparator--sideLeft


.MuiDataGridPremium-columnSeparator--sideRight

Styles applied to the column header separator if the side is "right".

Rule name:columnSeparator--sideRight


.MuiDataGridPremium-columnsManagementFooter

Styles applied to the columns management footer element.

Rule name:columnsManagementFooter


.MuiDataGridPremium-columnsManagementHeader

Styles applied to the columns management header element.

Rule name:columnsManagementHeader


.MuiDataGridPremium-columnsManagementRow

Styles applied to the columns management row element.

Rule name:columnsManagementRow


.MuiDataGridPremium-container--bottom

Styles applied to the bottom container.

Rule name:container--bottom


.MuiDataGridPremium-container--top

Styles applied to the top container.

Rule name:container--top


.MuiDataGridPremium-detailPanel

Styles applied to the detail panel element.

Rule name:detailPanel


.MuiDataGridPremium-detailPanelToggleCell

Styles applied to the detail panel toggle cell element.

Rule name:detailPanelToggleCell


.MuiDataGridPremium-detailPanelToggleCell--expanded

Styles applied to the detail panel toggle cell element if expanded.

Rule name:detailPanelToggleCell--expanded


.MuiDataGridPremium-editBooleanCell

Styles applied to root of the boolean edit component.

Rule name:editBooleanCell


.MuiDataGridPremium-editInputCell

Styles applied to the root of the input component.

Rule name:editInputCell


.MuiDataGridPremium-filterForm

Styles applied to the root of the filter form component.

Rule name:filterForm


.MuiDataGridPremium-filterFormColumnInput

Styles applied to the column input of the filter form component.

Rule name:filterFormColumnInput


.MuiDataGridPremium-filterFormDeleteIcon

Styles applied to the delete icon of the filter form component.

Rule name:filterFormDeleteIcon


.MuiDataGridPremium-filterFormLogicOperatorInput

Styles applied to the link operator input of the filter form component.

Rule name:filterFormLogicOperatorInput


.MuiDataGridPremium-filterFormOperatorInput

Styles applied to the operator input of the filter form component.

Rule name:filterFormOperatorInput


.MuiDataGridPremium-filterFormValueInput

Styles applied to the value input of the filter form component.

Rule name:filterFormValueInput


.MuiDataGridPremium-filterIcon

Styles applied to the filter icon element.

Rule name:filterIcon


.MuiDataGridPremium-footerCell

Styles applied to the root element of the cell inside a footer row.

Rule name:footerCell


.MuiDataGridPremium-footerContainer

Styles applied to the footer container element.

Rule name:footerContainer


.MuiDataGridPremium-groupingCriteriaCell

Styles applied to the root element of the grouping criteria cell

Rule name:groupingCriteriaCell


.MuiDataGridPremium-groupingCriteriaCellToggle

Styles applied to the toggle of the grouping criteria cell

Rule name:groupingCriteriaCellToggle


.MuiDataGridPremium-headerFilterRow

Styles applied to the column header filter row.

Rule name:headerFilterRow


.MuiDataGridPremium-iconButtonContainer

Styles applied to the column header icon's container.

Rule name:iconButtonContainer


.MuiDataGridPremium-iconSeparator

Styles applied to the column header separator icon element.

Rule name:iconSeparator


.MuiDataGridPremium-main

Styles applied to the main container element.

Rule name:main


.MuiDataGridPremium-main--hasPinnedRight

Styles applied to the main container element when it has right pinned columns.

Rule name:main--hasPinnedRight


.MuiDataGridPremium-menu

Styles applied to the menu element.

Rule name:menu


.MuiDataGridPremium-menuIcon

Styles applied to the menu icon element.

Rule name:menuIcon


.MuiDataGridPremium-menuIconButton

Styles applied to the menu icon button element.

Rule name:menuIconButton


.MuiDataGridPremium-menuList

Styles applied to the menu list element.

Rule name:menuList


.MuiDataGridPremium-menuOpen

Styles applied to the menu icon element if the menu is open.

Rule name:menuOpen


.MuiDataGridPremium-overlay

Styles applied to the overlay element.

Rule name:overlay


.MuiDataGridPremium-overlayWrapper

Styles applied to the overlay wrapper element.

Rule name:overlayWrapper


.MuiDataGridPremium-overlayWrapperInner

Styles applied to the overlay wrapper inner element.

Rule name:overlayWrapperInner


.MuiDataGridPremium-panelContent

Styles applied to the panel content element.

Rule name:panelContent


.MuiDataGridPremium-panelFooter

Styles applied to the panel footer element.

Rule name:panelFooter


.MuiDataGridPremium-panelHeader

Styles applied to the panel header element.

Rule name:panelHeader


.MuiDataGridPremium-panelWrapper

Styles applied to the panel wrapper element.

Rule name:panelWrapper


.MuiDataGridPremium-paper

Styles applied to the paper element.

Rule name:paper


.MuiDataGridPremium-pinnedColumns

Styles applied to the pinned columns.

Rule name:pinnedColumns


.MuiDataGridPremium-pinnedRows

Styles applied to the pinned rows container.

Rule name:pinnedRows


.MuiDataGridPremium-pinnedRows--bottom

Styles applied to the bottom pinned rows container.

Rule name:pinnedRows--bottom


.MuiDataGridPremium-pinnedRows--top

Styles applied to the top pinned rows container.

Rule name:pinnedRows--top


.MuiDataGridPremium-pinnedRowsRenderZone

Styles applied to pinned rows render zones.

Rule name:pinnedRowsRenderZone


.MuiDataGridPremium-root

Styles applied to the root element.

Rule name:root


.MuiDataGridPremium-root--densityComfortable

Styles applied to the root element if density is "comfortable".

Rule name:root--densityComfortable


.MuiDataGridPremium-root--densityCompact

Styles applied to the root element if density is "compact".

Rule name:root--densityCompact


.MuiDataGridPremium-root--densityStandard

Styles applied to the root element if density is "standard" (default).

Rule name:root--densityStandard


.MuiDataGridPremium-root--disableUserSelection

Styles applied to the root element when user selection is disabled.

Rule name:root--disableUserSelection


.MuiDataGridPremium-row--detailPanelExpanded

Styles applied to the row if its detail panel is open.

Rule name:row--detailPanelExpanded


.MuiDataGridPremium-row--dragging

Styles applied to the floating special row reorder cell element when it is dragged.

Rule name:row--dragging


.MuiDataGridPremium-row--dynamicHeight

Styles applied to the row if it has dynamic row height.

Rule name:row--dynamicHeight


.MuiDataGridPremium-row--editable

Styles applied to the row element if the row is editable.

Rule name:row--editable


.MuiDataGridPremium-row--editing

Styles applied to the row element if the row is in edit mode.

Rule name:row--editing


.MuiDataGridPremium-row--firstVisible

Styles applied to the first visible row element on every page of the grid.

Rule name:row--firstVisible


.MuiDataGridPremium-row--lastVisible

Styles applied to the last visible row element on every page of the grid.

Rule name:row--lastVisible


.MuiDataGridPremium-rowCount

Styles applied to the footer row count element to show the total number of rows. Only works when pagination is disabled.

Rule name:rowCount


.MuiDataGridPremium-rowReorderCell

Styles applied to the root element of the row reorder cell

Rule name:rowReorderCell


.MuiDataGridPremium-rowReorderCell--draggable

Styles applied to the root element of the row reorder cell when dragging is allowed

Rule name:rowReorderCell--draggable


.MuiDataGridPremium-rowReorderCellContainer

Styles applied to the row reorder cell container element.

Rule name:rowReorderCellContainer


.MuiDataGridPremium-rowReorderCellPlaceholder

Styles applied to the row's draggable placeholder element inside the special row reorder cell.

Rule name:rowReorderCellPlaceholder


.MuiDataGridPremium-scrollArea

Styles applied to both scroll area elements.

Rule name:scrollArea


.MuiDataGridPremium-scrollArea--left

Styles applied to the left scroll area element.

Rule name:scrollArea--left


.MuiDataGridPremium-scrollArea--right

Styles applied to the right scroll area element.

Rule name:scrollArea--right


.MuiDataGridPremium-scrollbar

Styles applied to the scrollbars.

Rule name:scrollbar


.MuiDataGridPremium-scrollbar--horizontal

Styles applied to the horizontal scrollbar.

Rule name:scrollbar--horizontal


.MuiDataGridPremium-scrollbar--vertical

Styles applied to the horizontal scrollbar.

Rule name:scrollbar--vertical


.MuiDataGridPremium-selectedRowCount

Styles applied to the footer selected row count element.

Rule name:selectedRowCount


.MuiDataGridPremium-sortIcon

Styles applied to the sort icon element.

Rule name:sortIcon


.MuiDataGridPremium-toolbarContainer

Styles applied to the toolbar container element.

Rule name:toolbarContainer


.MuiDataGridPremium-toolbarFilterList

Styles applied to the toolbar filter list element.

Rule name:toolbarFilterList


.MuiDataGridPremium-treeDataGroupingCell

Styles applied to the root of the grouping column of the tree data.

Rule name:treeDataGroupingCell


.MuiDataGridPremium-treeDataGroupingCellToggle

Styles applied to the toggle of the grouping cell of the tree data.

Rule name:treeDataGroupingCellToggle


.MuiDataGridPremium-virtualScroller

Styles applied to the virtualization container.

Rule name:virtualScroller


.MuiDataGridPremium-virtualScrollerContent

Styles applied to the virtualization content.

Rule name:virtualScrollerContent


.MuiDataGridPremium-virtualScrollerContent--overflowed

Styles applied to the virtualization content when its height is bigger than the virtualization container.

Rule name:virtualScrollerContent--overflowed


.MuiDataGridPremium-virtualScrollerRenderZone

Styles applied to the virtualization render zone.

Rule name:virtualScrollerRenderZone


.MuiDataGridPremium-withBorderColor

Styles applied to cells, column header and other elements that have border. Sets border color only.

Rule name:withBorderColor


.MuiDataGridPremium-withVerticalBorder

Styles applied the grid if showColumnVerticalBorder={true}.

Rule name:withVerticalBorder



You can override the style of the component using one of these customization options: