Column DnD & Row Pinning
Column DnD: Drag headers to reorder columns. Row Pinning: Pin specific rows to the top or bottom (state API only; rendering to be applied).
Column DnD Reorder
Drag a header with the mouse; a ghost follows the cursor and a blue vertical line shows the drop position. Releasing updates the column order.
Row Pinning (state)
Pin rows to the top or bottom. Specify row IDs via getRowId and control with rowPinning state.
Grid API
State
{
"columnOrder": [
"id",
"name",
"department",
"salary",
"performanceScore"
],
"columnPinning": {
"left": [],
"right": []
},
"rowPinning": {
"top": [],
"bottom": []
},
"sorting": []
}