Posted 1 August 2021, 7:09 am EST
Hi,
c1TrueDBGrid1.Splits[0].AutoHeightCaption()
As per the documentation, This method calculates the height of display columns caption by caption string.
But I have following questions about the AutoHeightCaption method (after seeing sample demo):
-
Does it mean that it sets the height of display columns caption automatically?
-
Will it work, if I reduce the caption string length programmatically after the grid initialization?
The whole purpose should be optimum utilization of column headers space in terms of dynamic grids captions.
How I expect it to work is:
If I reduce column’s width then caption string should be wrapped and header height should be increased
and
if I expand column’s width then caption string should be un-wrapped and header height should be reduced (provided other column’s caption allow so) accordingly.
Regards
Mahesh