I have a simple for each loop checking the text in the 10th cell of my gridview, then setting the colour of that cell to green or red dependant in the text.This is working fine apart from the very first cell in the first row is being ignored. Ive had similar situations to this with for loops, but not a for each.Heres my code:\[code\] protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { GridView vg = GridView1; foreach (GridViewRow row in vg.Rows) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.Cells[10].Text == "Order has been dispatched.") { e.Row.Cells[10].BackColor = Color.LawnGreen; } if (e.Row.Cells[10].Text == "Order is being processed.") { e.Row.Cells[10].BackColor = Color.Red; } } } }\[/code\]Here's the issue, the first results cell is being ignored:
![FZY30.jpg](http://i.stack.imgur.com/FZY30.jpg)