Home Forums WinForms controls Xceed Grid for WinForms add image with text to Column Header Reply To: add image with text to Column Header

User (Old forums)
Member
Post count: 23064

You can use the BackgroundImage property on the ColumnMangerCell.

e.g. :

Image image = new Bitmap( @”D:\Logo.png” );

Image imageResized = new Bitmap( image, new Size( 15, 15 ) );

foreach( ColumnManagerCell cell in columnManagerRow1.Cells )

{

  cell.BackgroundImage = new Bitmap( imageResized );

  cell.BackgroundImageAlignment = ContentAlignment.MiddleLeft;

}

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