Topic: Display a table from right to left

Welcome
How do I make a table show data from right to left?

2 (edited by domebil 2024-01-04 07:05:31)

Re: Display a table from right to left

vedi foto

Post's attachments

Attachment icon alliniamento.png 63.58 kb, 13 downloads since 2024-01-04 

Domebil

Re: Display a table from right to left

Hello Domebil

Look at this :

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;

You could also use BiDiMode from Object Inspector (behind Aditionnal)

Make your choice.
JB

Re: Display a table from right to left

I want to create a complete table starting from the right
It does not change the direction of texts

Re: Display a table from right to left

Unfortunately, the table columns are displayed from left to right. But you can add the first empty column and achieve the desired visual effect by setting the width of the first (empty) and all other data columns with a script.

Визуальное программирование: блог и телеграм-канал.