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.
ref
is forwarded to the root element.Component responsible for showing menu adornment in Header filter row
Default component: GridHeaderFilterCell
Component responsible for showing menu in Header filter row
Default component: GridHeaderFilterMenu
Component rendered for each cell.
Class name: .MuiDataGridPremium-cell
Default component: GridCell
Filter icon component rendered in each column header.
Default component: GridColumnHeaderFilterIconButton
Column menu component rendered by clicking on the 3 dots "kebab" icon in column headers.
Default component: GridColumnMenu
Component responsible for rendering the column headers.
Class name: .MuiDataGridPremium-columnHeaders
Default component: GridColumnHeaders
Component responsible for rendering the detail panels.
Class name: .MuiDataGridPremium-detailPanels
Default component: GridDetailPanels
Loading overlay component rendered when the grid is in a loading state.
Default component: GridLoadingOverlay
No results overlay component rendered when the grid has no results after filtering.
Default component: GridNoResultsOverlay
No rows overlay component rendered when the grid has no rows.
Default component: GridNoRowsOverlay
Filter panel component rendered when clicking the filter button.
Default component: GridFilterPanel
GridColumns panel component rendered when clicking the columns button.
Default component: GridColumnsPanel
Component used inside Grid Columns panel to manage columns.
Class name: .MuiDataGridPremium-columnsManagement
Default component: GridColumnsManagement
Panel component wrapping the filters and columns panels.
Class name: .MuiDataGridPremium-panel
Default component: GridPanel
The custom Checkbox component used in the grid for both header and cells.
Default component: Checkbox
The custom InputAdornment component used in the grid.
Default component: InputAdornment
Icon displayed on the boolean cell to represent the true value.
Default component: GridCheckIcon
Icon displayed on the boolean cell to represent the false value.
Default component: GridCloseIcon
Icon displayed on the side of the column header title to display the filter input component.
Default component: GridTripleDotsVerticalIcon
Icon displayed on the open filter button present in the toolbar by default.
Default component: GridFilterListIcon
Icon displayed on the column header menu to show that a filter has been applied to the column.
Default component: GridFilterAltIcon
Icon displayed on the side of the column header title when unsorted.
Default component: GridColumnUnsortedIcon
Icon displayed on the side of the column header title when sorted in ascending order.
Default component: GridArrowUpwardIcon
Icon displayed on the side of the column header title when sorted in descending order.
Default component: GridArrowDownwardIcon
Icon displayed in between two column headers that allows to resize the column header.
Default component: GridSeparatorIcon
Icon displayed on the compact density option in the toolbar.
Default component: GridViewHeadlineIcon
Icon displayed on the standard density option in the toolbar.
Default component: GridTableRowsIcon
Icon displayed on the "comfortable" density option in the toolbar.
Default component: GridViewStreamIcon
Icon displayed on the open export button present in the toolbar by default.
Default component: GridSaveAltIcon
Icon displayed on the actions
column type to open the menu.
Default component: GridMoreVertIcon
Icon displayed on the tree data toggling column when the children are collapsed
Default component: GridKeyboardArrowRight
Icon displayed on the tree data toggling column when the children are expanded
Default component: GridExpandMoreIcon
Icon displayed on the grouping column when the children are collapsed
Default component: GridKeyboardArrowRight
Icon displayed on the grouping column when the children are expanded
Default component: GridExpandMoreIcon
Icon displayed on the detail panel toggle column when collapsed.
Default component: GridAddIcon
Icon displayed on the detail panel toggle column when expanded.
Default component: GridRemoveIcon
Icon displayed for deleting the filter from filter panel.
Default component: GridAddIcon
Icon displayed for deleting the filter from filter panel.
Default component: GridDeleteIcon
Icon displayed for deleting all the active filters from filter panel.
Default component: GridDeleteForeverIcon
Icon displayed on the reorder
column type to reorder a row.
Default component: GridDragIcon
Icon displayed in column menu for hiding column
Default component: GridVisibilityOffIcon
Icon displayed in column menu for ascending sort
Default component: GridArrowUpwardIcon
Icon displayed in column menu for descending sort
Default component: GridArrowDownwardIcon
Icon displayed in column menu for showing all columns
Default component: GridViewColumnIcon
Icon displayed in column menu for clearing values
Default component: GridClearIcon
Icon displayed in column menu for left pinning
Default component: GridPushPinLeftIcon
Icon displayed in column menu for right pinning
Default component: GridPushPinRightIcon
Icon displayed in column menu for ungrouping
Default component: GridWorkspacesIcon
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.