如何在 MUI DataGrid 上为用户启用列大小调整,它在 XGrid 上默认启用,但我想在 Datagrid 上启用它,请帮忙。
<DataGrid
className={classes.table}
autoHeight
disableColumnMenu
rows={rows}
columns={columns}
pageSize={50}
onPageChange={handlePageChange}
rowCount={rowCount}
paginationMode="server"
loading={loading}
rowsPerPageOptions={[]}
/>
最佳答案
不幸的是resizable columns仅在商业版 (XGrid) 中可用。
关于javascript - 如何在 MUI DataGrid 上启用列大小调整,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68509724/