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
My Visual Database → General → 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
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;
Great, thanks Dmitry. Super fast as usual
You should implement an answer scoring on your forum
My Visual Database → General → Align column content
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi