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

Group text align

2 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
dennis
Top achievements
Rank 1
dennis asked on 21 Nov 2008, 06:55 AM
The vistaorange have the text of the group row center aligned. i want to align the text to the left, like in vista theme. how i can do it??

2 Answers, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 21 Nov 2008, 04:29 PM
Hi dennis,

Please use ViewCellFormatting event as in the example below:

private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) 
        { 
            if (e.CellElement.RowInfo is GridViewGroupRowInfo ) { 
               e.CellElement.TextAlignment = ContentAlignment.MiddleLeft; 
            } 
        } 


Sincerely yours,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
dennis
Top achievements
Rank 1
answered on 21 Nov 2008, 04:40 PM
thanks, that work s perfectly
Tags
GridView
Asked by
dennis
Top achievements
Rank 1
Answers by
Nick
Telerik team
dennis
Top achievements
Rank 1
Share this question
or