How to paint a cell in column with devexpress

48 Views Asked by At

I need to paint a cell only in column with name "Summa". I tried this and it isn't work:

private void gridView_Tasks_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)
        {
             if (e.Column.FieldName == "Summa") e.Appearance.ForeColor = Color.Red;
        }

Also I tried this:

e.Column.AppearanceCell.Options.UseForeColor = true; e.Column.AppearanceCell.ForeColor = Color.Red;

0

There are 0 best solutions below