protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if ((string.IsNullOrEmpty(e.Row.Cells[3].Text) != true) || (e.Row.Cells[3].Text != " ")) { string result = (e.Row.Cells[3].Text); if (result == "not working") e.Row.Cells[3].BackColor= System.Drawing.Color.DarkRed; else e.Row.Cells[3].BackColor= System.Drawing.Color.DarkOliveGreen; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)