Home Forums WinForms controls Xceed Grid for WinForms How to increase the height of headercolumn in exceedgrid Reply To: How to increase the height of headercolumn in exceedgrid

User (Old forums)
Member
Post count: 23064

You can do it by getting the ColumnManagerRow instance, and set the Height property to the value you want :

columnManagerRow1.Height = 50;

You can also use the GetFittedHeight method to do this, so the height of the row is adjusted to the strings it contains. Make sure however that the titles of the ColumnManagerCell’s have been set before you call this method.

e.g.:

gridControl1.Columns[ 0 ].Title = “First line” + “\n” + “Second line”;
columnManagerRow1.Height = columnManagerRow1.GetFittedHeight( AutoHeightMode.AllContent );

Imported from legacy forums. Posted by André (had 3055 views)