Link to home
Start Free TrialLog in
Avatar of BOEING39
BOEING39

asked on

BEHIND CODE GRIDVIEW HIGHLIGHT ON CONDITION

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.RowType==DataControlRowType.DataRow)
                if (e.Row.Cells[13].Text == "AOG" || e.Row.Cells[13].Equals(DBNull.Value))  
                {  
                    e.Row.BackColor = System.Drawing.Color.LightPink;  
                }
 }

}
ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BOEING39
BOEING39

ASKER

Accurate quick answer