Column Header Text alignment

2 posts, 0 answers
  1. Thorben
    Thorben avatar
    4 posts
    Member since:
    Dec 2012

    Posted 07 Oct 2013 Link to this post

    How do I center the text in the Column Header?
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 Oct 2013 Link to this post

    Hi Thorben,

    Thank you for writing.

    You can customize the header cells appearance in the ViewCellFormatting event of RadGridView. More information and examples about it can be found here: http://www.telerik.com/help/winforms/gridview-cells-formatting-cells.html.

    In your case you need to set the TextAlignmentProperty of the header cells and reset it for the rest.

    I hope this helps.

    Regards,
    Stefan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top