Hi ,
I am using RadGrid in my code, i am trying to add color to a label in Radgrid.
On itemDatabound event i have the following code:
protected void GrdAlertList_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
{
((e.Item as GridItem).FindControl("lblAlertColor") as System.Web.UI.WebControls.Label).BackColor = ColorTranslator.FromHtml(item.Color.ToString());
}
}
This works fine in IE and color will be displayed, but color is not rendered in case of Mozilla firefox ?
Plese let me know the solution for this