Home Forums WinForms controls Xceed Grid for WinForms How to display bitmap in the row header ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17660 |

    How to display bitmap in the row header just like you can do with a ListView except that xceed grid is bound to a database.

    Imported from legacy forums. Posted by Frederic (had 946 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Frederic, 

    You need to set the ColumnManagerRow’s Cells’ .BackgroundImage to an instance of your bitmap.

    ie:

    columnManagerRow1.Cells[0].BackgroundImage = new System.Drawing.Bitmap(@”D:\images\col1.JPG”);

    You could also set the ColumnManagerRow’s Cells’ .Value to an empty string if you do not want to see a column title over your image.

    ColumnManagerRow1.Cells[0].Value = String.Empty;

     

    Imported from legacy forums. Posted by Michel [Xceed] (had 796 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.