Home › Forums › WinForms controls › Xceed Grid for WinForms › How can I change the background/foreground color of a cell being edited? › Reply To: How can I change the background/foreground color of a cell being edited?
Xceed.Grid.Licenser.LicenseKey = “GRD38-*****-*****-****”;
gridControl1.SelectionBackColor = Color.White;
gridControl1.SelectionForeColor = Color.Black;
gridControl1.UIStyle = Xceed.UI.UIStyle.WindowsClassic;
foreach (Column column in gridControl1.Columns)
column.CellEditorManager.SettingControlAppearance += new Xceed.Grid.Editors.CellEditorEventHandler(CellEditorManager_SettingControlAppearance);
void CellEditorManager_SettingControlAppearance(object sender, Xceed.Grid.Editors.CellEditorEventArgs e)
e.Control.BackColor = Color.Yellow;
e.Control.ForeColor = Color.Black;
We are limited in the way we can help you. The line gridControl1.UIStyle = Xceed.UI.UIStyle.WindowsClassic; is important for your application to look the same on operating systems prior to Vista and also on Vista and Windows 7.
Imported from legacy forums. Posted by Ghislain (had 2075 views)