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

Right align columns in header

2 Answers 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 09 Mar 2011, 05:55 AM
I'm wondering if there's a property I'm missing on the grid that will allow me to right align the columns I'm adding to the grid. For example, if I add two columns that do not take up the whole width of the header I end up with space to the right of the columns in the header. I would like to have the opposite of this and have columns be right aligned and have the extra space to the left of the columns in the header.

Do I need to do this with the grid header template?

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 09 Mar 2011, 11:00 AM
Hi Scott,

 

You may use the FlowDirection property of RadGridView to RightToLeft, as show below:

Copy Code
<telerik:RadGridView  FlowDirection="RightToLeft"  ItemsSource="{Binding Collection}"/>

If you are looking for something more specific, please let us know.
I will be waiting for your response.


Kind regards,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Falafel Support
Top achievements
Rank 1
answered on 09 Mar 2011, 05:55 PM
Exactly what I needed. Thanks for the time to answer.
Tags
GridView
Asked by
Scott
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Falafel Support
Top achievements
Rank 1
Share this question
or