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

Column Header Text alignment

1 Answer 578 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
ipnordic
Top achievements
Rank 1
ipnordic asked on 07 Oct 2013, 11:56 AM
How do I center the text in the Column Header?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Oct 2013, 04:03 PM
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 >>
Tags
PivotGrid and PivotFieldList
Asked by
ipnordic
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or