Topic: Align column content

Is there a way to set the alignment of a column content in a grid? I would like to center some of them and align to the right on others without too much script if possible smile

Re: Align column content

example:

procedure Form1_TableGrid1_OnChange (Sender: string);
begin
     Form1.TableGrid1.Columns[0].Alignment := taRightJustify; // first column
     Form1.TableGrid1.Columns[1].Alignment := taCenter; 
     Form1.TableGrid1.Columns[2].Alignment := taLeftJustify; 
end;
Dmitry.

Re: Align column content

Great, thanks Dmitry. Super fast as usual smile

You should implement an answer scoring on your forum wink