if (e.Row.RowType == DataControlRowType.DataRow) { if (Convert.ToInt32(e.Row.Cells[2].Text) < 300) { e.Row.Cells[2].BackColor = System.Drawing.Color.Red; } }
var