How to set CellBackColor of RadMultiColumnComboBox

Thread is closed for posting
2 posts, 0 answers
  1. zg
    zg avatar
    1 posts
    Member since:
    Jul 2009

    Posted 09 Jul 2009 Link to this post

    I want to set CellBackColor of RadMultiColumnComboBox.But how to do this? Thank you.
  2. Victor
    Victor avatar
    1358 posts

    Posted 13 Jul 2009 Link to this post

    Hello zg,

    You can achieve this by subscribing to ViewCellFormatting event of the EditorControl property like so:

    this.radMultiColumnComboBox1.EditorControl.ViewCellFormatting += new CellFormattingEventHandler(EditorControl_ViewCellFormatting); 

    In the event handler you can do this:

    void EditorControl_ViewCellFormatting(object sender, CellFormattingEventArgs e)  
        e.CellElement.DrawFill = true;  
        e.CellElement.GradientStyle = GradientStyles.Solid;  
        e.CellElement.BackColor = Color.Red;  

    The solid red color is just an example. The important thing is to set the DrawFill property of the cell element to true.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top