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;