BEHIND CODE GRIDVIEW HIGHLIGHT ON CONDITION
Posted on 2011-10-31
I have the follow behind code that I would like to place an additional condition into. I need asssitence with the C# code behind. I want to add additional highlight condition "Etops - Working" and highlight it "Yellow
when column 13 also meets this condition.
public partial class _Home1All : System.Web.UI.Page
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
if (e.Row.Cells.Text == "AOG" || e.Row.Cells.Equals(DBNull.Value))
e.Row.BackColor = System.Drawing.Color.LightPink;