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(obj ect sender, GridViewRowEventArgs e)
{
if (e.Row.RowType==DataContro lRowType.D ataRow)
if (e.Row.Cells[13].Text == "AOG" || e.Row.Cells[13].Equals(DBN ull.Value) )
{
e.Row.BackColor = System.Drawing.Color.Light Pink;
}
}
}
when column 13 also meets this condition.
public partial class _Home1All : System.Web.UI.Page
{
protected void GridView1_RowDataBound(obj
{
if (e.Row.RowType==DataContro
if (e.Row.Cells[13].Text == "AOG" || e.Row.Cells[13].Equals(DBN
{
e.Row.BackColor = System.Drawing.Color.Light
}
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER