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

Changing Text Alignment for a GridViewColumn

2 Answers 222 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sasa Milovic
Top achievements
Rank 1
Sasa Milovic asked on 17 May 2007, 01:49 PM
Is there some way to set the text alignment?

2 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 17 May 2007, 03:54 PM
Hi Sasa,

To change the text alignment of the grid column use the following code:

(radGridView1.MasterGridViewTemplate.Columns["Name"] as GridViewDataColumn).TextAlignment = ContentAlignment.MiddleRight;

 
Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sasa Milovic
Top achievements
Rank 1
answered on 18 May 2007, 07:03 AM
Thanks, worked like a charm!
Tags
GridView
Asked by
Sasa Milovic
Top achievements
Rank 1
Answers by
Jack
Telerik team
Sasa Milovic
Top achievements
Rank 1
Share this question
or