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

Center align Merged Cell Header

1 Answer 153 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sherwin
Top achievements
Rank 1
Sherwin asked on 23 Feb 2012, 03:33 PM
Hi,

Is it possible to center align the new Merged Cell Header in RadGridView?

Thanks,
Sherwin

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 24 Feb 2012, 08:53 AM
Hello Sherwin,

 

You may predefine the HeaderTemplate of the corresponding column group and center its content, something like the following:


<telerik:GridViewColumnGroup Name="Data">
    <telerik:GridViewColumnGroup.HeaderTemplate>
        <DataTemplate>
            <TextBox Text="Data" ..../>
        </DataTemplate>
    </telerik:GridViewColumnGroup.HeaderTemplate>
</telerik:GridViewColumnGroup>


Regards,
Vanya Pavlova
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Sherwin
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or