Center align Merged Cell Header

2 posts, 0 answers
  1. Sherwin
    Sherwin avatar
    22 posts
    Member since:
    Jan 2011

    Posted 23 Feb 2012 Link to this post

    Hi,

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

    Thanks,
    Sherwin
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 24 Feb 2012 Link to this post

    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 >>
Back to Top