Topic: how to setting Alignmen of tablegrid header

please tell me how to setting  Alignmen of  tablegrid header.thanks

Re: how to setting Alignmen of tablegrid header

Have a look at the screenshot.
Derek.

Post's attachments

Attachment icon screenshot01.jpg 84.08 kb, 74 downloads since 2022-01-21 

Re: how to setting Alignmen of tablegrid header

thank you for your help . i want to do it in script ,how to do this ?

Re: how to setting Alignmen of tablegrid header

If you use the Forum 'search' function, you will often find that similar questions have already been answered.
Try it like this:
procedure Form1_TableGrid1_OnChange (Sender: string);
begin
     Form1.TableGrid1.Columns[0].Header.Alignment := taLeftJustify;
     Form1.TableGrid1.Columns[1].Header.Alignment := taCenter;
     Form1.TableGrid1.Columns[2].Header.Alignment := taRightJustify;
     Form1.TableGrid1.Columns[0].Alignment := taLeftJustify;
     Form1.TableGrid1.Columns[1].Alignment := taCenter;
     Form1.TableGrid1.Columns[2].Alignment := taRightJustify;
     Form1.TableGrid1.Columns[0].Footer.Alignment := taLeftJustify;
     Form1.TableGrid1.Columns[1].Footer.Alignment := taCenter;
     Form1.TableGrid1.Columns[2].Footer.Alignment := taRightJustify;
end;

Derek.

Re: how to setting Alignmen of tablegrid header

thanks . i will try to us the  Forum 'search' function.if there is no answer , then i post the topic.