hey guys im stuck on this. Just trying to change the row colour based on cell text value. this is what i have at the moment
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string value = Convert.ToString(DataBinder.Eval(e.Row.DataItem,"Field1"));
if (value == "Complete")
{
e.Row.BackColor = System.Drawing.Color.FromName("#c6efce");
}
}
}
}
}