AdjustRowHeight

Class: TEgDBGridEx

procedure AdjustRowHeight;

Distributes the leftover client-area pixels that would otherwise leave a partially cut-off data row at the bottom evenly across the visible data rows, so they exactly fill the client area with no partial row. Any single pixel left over after that equal split (always less than the number of data rows) is assigned to the title row directly. Only changes existing RowHeights[] entries, never DefaultRowHeight itself, so it cannot trigger a RowCount recalculation loop. Called automatically on every layout change and resize when AutoRowHeight is True; can also be called directly. Skipped when AlwaysAdjustRowHeight is False and the dataset does not have enough records to fill the visible data rows.

See Also

(C) 2026 Easygate, Lda