DataGrid
needs to either have an explicit size or be put into a LayoutPanel
and you must ensure an unbroken chain of LayoutPanels
up to the RoutLayoutPanel
.
Here are some possible solutions:
- Use
CellTable
instead ofDataGrid
. - Calculate the required height (numer of rows * row height) and available size (
getOffsetHeight
on theFlowPanel
) and manually set the height accordingly.