ListControlPart would do it .. I must be going blind!
>How would you do it if the renderer was of type: GridDropDownStandardValuesCellRenderer
Which is what I see when my backing store is an enum.
>
Hi Paul,
Thank you for using Syncfusion products.
The below sample shows how to set back color to ComboBox cell as well as its DropDown part. You can set the back color of the ComboBoxCell by using BackColor property of GridControl. You can handle CurrentCellShowingDropDown event of the GridControl to set back color to the DropDown part by using BackColor property of ListBoxPart.
Below is the code snippet:
gridControl1[4, 2].BackColor = Color.Pink;
void gridControl1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs arg)
{
GridCurrentCell cc = this.gridControl1.CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
cr.ListBoxPart.BackColor = Color.Blue;
cr.ListBoxPart.ForeColor = Color.Cyan;
}
Please refer to the sample available in the link below and let me know if it helps:
http://websamples.syncfusion.com/samples/Grid.Windows/F71767/main.htmRegards,
Subhasheela R