This is a migrated thread and some comments may be shown as answers.

How to set CellBackColor of RadMultiColumnComboBox

1 Answer 68 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
zg
Top achievements
Rank 1
zg asked on 09 Jul 2009, 05:36 AM
I want to set CellBackColor of RadMultiColumnComboBox.But how to do this? Thank you.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 13 Jul 2009, 08:44 AM
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.

Greetings,
Victor
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
zg
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or