In your gridview's
RowDataBound
event you can do this.
protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
switch(e.Row.Cells[indexoftheSession].Text)
{
case "1":
case "2":
e.Row.BackColor = Color.Red;
e.Row.ForeColor = Color.Red;
break;
case "3":
case "4":
e.Row.BackColor = Color.Yellow;
e.Row.ForeColor = Color.Yellow;
break;
}
}
Good luck,
OI