The
<ReactDataGrid />
supports locked columns by specifying the
column.locked
prop, or its uncontrolled version,
column.defaultLocked
. The columns can be locked to the start or to the end of the
<ReactDataGrid />
viewport.
Possible values are:
true
- the column is locked to the start. Same as 'start'
'start'
- the column is locked to the start.'end'
- the column is locked to the end.false
- the column is not locked. Any falsy value can go here. (In fact, any value that is different from the three values above)
If you don't want to update the locked state for columns manually, use the uncontrolled
column.defaultLocked
instead.