Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
e.row.cssClass not working
posted

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.

 

Parents
  • 12679
    Verified Answer
    posted

    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.

Reply Children
No Data