In version 14.1, we have added the GridView.OptionsView.ColumnHeaderAutoHeight property .
For older versions:
This example demonstrates how to introduce a capability to adjust the column header panel's height, based upon the column header contents.
Question Comments
Added By: Eddy Maldonado at: 7/11/2013 8:32:19 AM
Hi, it works perfect to me, but i need center the headers, when i activate the AppearanceHeader.TextOptions.HAlignment = Center its stop to work and headers don't fit anymore. Do you have an idea to center headers ? Best Regards.
Added By: Nathan Keir at: 10/24/2013 9:19:08 PMTo get this to work correctly I also needed to set Appearance.HeaderPanel.TextOptions.WordWrap = Wrap and Appearance.HeaderPanel.TextOptions.Trimming = EllipsisCharacter.
Added By: Richard Oberholz 1 at: 4/4/2014 9:43:57 AMInclude the code for the AutoHeightHelper class needed to make this code example work. I finally found that code at stackoverflow.com.