Color Cell in one GridView based on cell value in another GridView
问题 I am trying to color a cell in GridView1 based on a value of a cell of a GridView2. Say, " If the GridView1 Column[3] Cell value = ' ' then a GridView2 Column[0] Row.Cells.BackColor = Color.Orange; ". The following code colors the entire GridView1 and not a particular cell. protected void GridView2_OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { string status = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "Enabled")); if (status =