Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
UltraGrid, can't set Forecolor of cell with UltraComboEditor
posted

Nothing in the code below changes the forecolor of the drop-downs.

private void HighlightRow(UltraGridRow gridRow, Color color, GradientStyle gradientStyle)
        {
            gridRow.Appearance.BackColor = color;
            gridRow.Appearance.ForeColor = Color.White;

            foreach (var gridRowCell in gridRow.Cells)
                if (gridRowCell.EditorComponent is UltraComboEditor)
                {
                    gridRowCell.Appearance.ForeColor = Color.White;

                    UltraComboEditor editor = gridRowCell.EditorComponent as UltraComboEditor;

                    if (editor != null)
                    {
                        editor.Appearance.ForeColor = Color.White;
                    }
                }
        }