this.gridControl1.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(gridControl1_PrepareViewStyleInfo);
void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if (e.Style.CellType == "ComboBox" && e.Style.Text == "cc")
e.Style.BackColor = Color.Blue;
}
private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if (e.Style.CellType == "ComboBox")
{
if (e.Style.Text == "cc")
{
e.Style.BackColor = Color.Blue;
e.Style.TextColor = Color.Red;
}
else
{
e.Style.BackColor = SystemColors.Window;
e.Style.TextColor = SystemColors.ControlText;
}
}
}