TitleRowHeightPx

Class: TEgDBGridEx

property TitleRowHeightPx: Integer default 0;

Forces the height of the title row (RowHeights[0]), in pixels at 96 DPI - scaled by the control’s current DPI, the same convention RowHeightPx already uses for data rows.

0 (the default): unchanged automatic behavior - AutoTitleHeight, or the automatic extra height a column’s SubTitle reserves, whichever applies. Greater than 0: the title row is forced to that height and takes full priority over both - neither AutoTitleHeight nor the SubTitle reservation runs at all while this is set.

Also takes priority over AutoRowHeight: with TitleRowHeightPx set, AutoRowHeight still resizes the data rows normally, but never touches the title row. Whatever leftover pixels AutoRowHeight/AutoTitleHeight would otherwise redistribute are still added on top of the forced value, the same “configured value is a floor, not an exact height” relationship RowHeightPx already has with data rows.

Not supported: combining TitleRowHeightPx with a column’s own SubTitle - the automatic SubTitle height reservation simply does not run while TitleRowHeightPx is forcing a value, so a two-line title may not have enough room. Size TitleRowHeightPx generously enough yourself if both are in use.

See Also

(C) 2026 Easygate, Lda