<DataGrid
  rows={rows}
  columns={columns}
  checkboxSelection
  disableRowSelectionOnClick
  columnGroupingModel={columnGroupingModel}
  slots={{ columnsPanel: ColumnsPanel }}
  initialState={{
    preferencePanel: {
      open: true,
      openedPanelValue: GridPreferencePanelsValue.columns,
    },
  }}
/>