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
TitleRowHeightPxwith a column’s ownSubTitle- the automaticSubTitleheight reservation simply does not run whileTitleRowHeightPxis forcing a value, so a two-line title may not have enough room. SizeTitleRowHeightPxgenerously enough yourself if both are in use.