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
175
CssClass Cell vs. CssClass Row in code behind
posted

 Hello,

 I have this strange problem. In C# I am making the following initialization:

uwg.Rows[0].Style.CssClass = "uwgRowStyle";

uwg.Rows[0].Cell.[0].Style.CssClass = "uwgCellStyle";

I expect that het row cells will have the css class "uwgRowStyle" exceptin the first one, which should have the css class "uwgCellStyle". The result is that all the cells get the "uwgRowStyle" including the first one. Is this a bug?

 

P.S. In CSOM works as it should.

 

Regards,

Adrian

 

 

Parents
No Data
Reply
  • 28464
    posted

    Hello,

    Most probably a matter of precendence - Row takes prcedence over the individual Cell class. Maybe you can individually set CssClass for each cell, by using "uwgCellStyle" for the first and then use a for cycle to go through the rest of the rows ans set different style for them.

Children
No Data