GridRowOrderChangeParams API
Extended documentation for the GridRowOrderChangeParams interface with detailed information on the module's properties and available APIs.
Demos
Import
import { GridRowOrderChangeParams } from '@mui/x-data-grid-premium'
// or
import { GridRowOrderChangeParams } from '@mui/x-data-grid-pro'Object passed as parameter of the row order change event.
The parent row ID after the move.
- For flat data: null.
- For nested row at root level: null.
- For nested row at levels below root: Parent row's ID.
Type:GridRowId | null
The old index of the row.
- For flat data: Position in the flat array.
- For nested data: Position within oldParent's children array (0-based).
Type:number
The parent row ID before the move.
- For flat data: null
- For nested row at root level: null.
- For nested row at levels below root: Parent row's ID.
Type:GridRowId | null
The row data of the primary row being moved.
For group moves, this represents the group row itself.
Descendants move should be handled as data updates. e.g. using processRowUpdate()
Type:GridRowModel