Data Grid - Layout
The data grid offers multiple layout modes.
When using percentages (%) for height or width, make sure that the Data Grid's parent container has intrinsic dimensions. Browsers adjust the element based on a percentage of its parent's size. If the parent has no size, the percentage will be zero.
You can predefine dimensions for the parent of the data grid.
autoHeight prop enables the Data Grid to adjust its size based on its content.
This means that the Data Grid's height will be determined by the number of rows, ensuring that all rows will be visible to the user simultaneously.
To customize the overlay height, use the
--DataGrid-overlayHeight CSS variable.