Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to enable the auto height feature for the column header panel, so the column header captions are shown in their entirety

$
0
0

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 PM    

To 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 AM    

Include the code for the AutoHeightHelper class needed to make this code example work. I finally found that code at stackoverflow.com.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>