maxHeight property

double? maxHeight
final

if set, the datagrid shrinks to height of rows or maxHeight where it will page

if maxHeight is less than the calculated height of the available records then we show as normal and page

if maxHeight is more than the calculated height of the available rows then we shrink the grid to fit the rows

if maxHeight is null then we display as normal (page number)

Implementation

final double? maxHeight;