I have it Grd_RowDataBoundand I am returning the color to my GridView rows. I used below code that works fine in Crome and Mozilla, but doesn't work in IE11 . In IE11, my Gridview back row color does not work.
protected void Grd_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string Status = Convert.ToString(DataBinder.Eval(e.Row.DataItem, "Visit_Status"));
if (Status == "1")
{
e.Row.BackColor = ColorTranslator.FromHtml("#28b779");
}
else
{
e.Row.BackColor = ColorTranslator.FromHtml("#da5554");
}
}
}
Please, help.
source
share