Skip to content

GridRowClassNameParams API

Object passed as parameter in the row getRowClassName callback prop.

Demos

Import

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

Properties

columns

All grid columns.

Type:GridColDef[]


id

The grid row id.

Type:GridRowId


indexRelativeToCurrentPage

Index of the row in the current page.
If the pagination is disabled, it will be the index relative to all filtered rows.

Type:number


isFirstVisible

Whether this row is the first visible or not.

Type:boolean


isLastVisible

Whether this row is the last visible or not.

Type:boolean


row

The row model of the row that the current cell belongs to.

Type:R