Hi,
i am using WebDataGrid.
In the WebGrid_initializeRow event i am trying to set the row back color for some rows.
I am doing it like this:-
e.Row.cssClass = "row";
where row is the name of the css Class which is there in the same aspx page.
but it doesn't reflect.
Please advice.
Anooj.
Hello Anooj,
you can try this:
TBODY > TR.redBackground > TD
{
background-image: none;
background-color: Red;
}
in InitializeRow:
e.Row.CssClass = "redBackground";
It should work now.
Thanx Rado,
It worked like a charm! I tried many things,but this notation
TBODY
> TR.redBackground > TD
was new to me.
Thanks