[Gambas-user] How to align cells to the Right on a Gridview ?

Benoît Minisini gambas at ...1...
Thu Feb 11 23:01:31 CET 2010


> Lets say that I want to align the 2nd columns of the following code to
> the right. How is this possible?
> 
> WITH GridView1
>     .rows.count = 0
>     .columns.count = 6
>     .Columns[0].Width = 45
>     .columns[0].text = "AA"
>     .Columns[1].Width = 280
>     .columns[1].text = "Name"
> 	etc..
> 
> I have tried the .Columns[1].Align = Right
> but it doesn't work.
> 

.Columns[1].Alignment = Align.Right. See the example on the GridView 
documentation page.

Regards,

-- 
Benoît Minisini




More information about the User mailing list