Topic: TableGrid Header Style and format
Hi,
I would like to format the header of my tablegrid, but seems I cannot find an answer.
what is odd, is that the following are working:
frmSearch.edTableGrid1.Columns[0].Font.Style := fsBold;
frmSearch.edTableGrid1.Columns[0].Header.Alignment := taCenter;
frmSearch.edTableGrid1.Columns[1].Header.Alignment := taCenter;
frmSearch.edTableGrid1.Columns[2].Header.Alignment := taCenter;
frmSearch.edTableGrid1.Columns[0].Footer.Color := clYellow; //this is for the footer text color
frmSearch.edTableGrid1.Columns[0].Footer.Alignment := taCenter;
which include also the Header alignment.
But these:
frmSearch.edTableGrid1.Columns[0].Header.Color := $0066FF66; //this is for the header text color
frmSearch.edTableGrid1.Columns[1].Header.Color := clRed;
frmSearch.edTableGrid1.Columns[2].Header.Color := clMoneyGreen;
are totally ignored. No errors compiling, just no change in my table header.
Am I too stupid or I am missing something?
version 4.1 used
thank you for your help !!!