Change GridView row color based on condition in C# (GridView.RowDataBound Event)
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e) { string value = ""; string value2 = ""; double cval; double sval; double color; double round; double reversal; value = e.Row.Cells[4].Text.ToString().Trim(); value2 = e.Row.Cells[3].Text.ToString().Trim(); if (value != " " && value != "" ) { if(value == "0" && value2 != "0" ) { e.Row.Cells[1].Style.Add("background-color", "GREEN"); e...