For DBAdvGrid there's no HideHeader or ShowHeader property available. So, I tried to
DBAdvGrid.HideRow(0);
and
i := DBAdvGrid.HeaderRow;
DBAdvGrid.HideRow(i);
Both will remove the header - but then - Row(1) becomes Row(0) and shows empty row.
For DBAdvGrid there's no HideHeader or ShowHeader property available. So, I tried to
DBAdvGrid.HideRow(0);
and
i := DBAdvGrid.HeaderRow;
DBAdvGrid.HideRow(i);
Both will remove the header - but then - Row(1) becomes Row(0) and shows empty row.
I'm not sure, don't you just need DBGrid.FixedRow = 0?
TDBAdvGrid.FixedRow = 0 is not accepted. Neither in property list nor during runtime.
I just tried HeaderRow = -1 (don't know why this is accepted) - nothing changed but the text of the header is gone.
I now solved this issue by moving the grid upwards by DBGrid.Top = -24 to hide the header behind another component.
An alternative solution is to set DBGrid.FixedRowHeight := 0
Thanks Bruno, that works also.