Data grid - Layout
The data grid offers multiple layout mode.
When using % (percentage) for your height or width, you need to make sure the container you are putting the grid into also has an intrinsic dimension. The browsers fit the element according to a percentage of the parent dimension. If the parent has no dimensions, then the % will be zero.
It's recommended to use a flex container to render the grid. This allows a flexible layout, resizes well, and works on all devices.
autoHeight prop allows the grid to size according to its content.
This means that the number of rows will drive the height of the grid and consequently, they will all be rendered and visible to the user at the same time.