This is a migrated thread and some comments may be shown as answers.

How to change column text direction?

1 Answer 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hosein
Top achievements
Rank 1
Hosein asked on 28 Nov 2010, 07:37 AM
Hello everybody.
i have a grid with RightToLeft direction. I need to change the direction of column[1] to LeftToRight. How this can be done?

thanks.

1 Answer, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 28 Nov 2010, 11:52 AM
Hello Hosein,

As far i know you cannot do this, the RightToLeft property is a control property, you can just set it on the control, not on the child elements of the control, so you can either have RightToLeft on the entire control or not at all.

But if you just want to align the text you can just align the text of that column to the right (because it is right to left we want the opposite), like so:
radGridView1.Columns[0].TextAlignment = ContentAlignment.MiddleRight;


Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
Tags
GridView
Asked by
Hosein
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or