I have a Datagridview object contained in a TabPage and which gets its data from a DataTable.
I'd like to modify the background color of some cells under some asumptions. But I only see the value change in my cell, not the color change. If I go into the datagridview object, I can see the color has been modified, it just doesn't appear on the screen.
I have tried to invalidate everything.
for (int i =0; i<dgViewObject.Rows.Count; i++)
if( (string) dgViewObject.Rows[i].Cells.Value == "SELL")
dgViewObject.Rows[i].Cells.Value = "SELL TEST";
dgViewObject.Rows[i].Cells.Style.BackColor = Color.Red;
View Complete Post