Hi,
I have tried to apply different css classes for UltraWebGrid Header,OddRows and EvenRows.
Following is the code used :
UltraWebGrid1.DisplayLayout.HeaderStyleDefault.CssClass = "cssHeader";
UltraWebGrid1.DisplayLayout.RowStyleDefault.CssClass = "cssOddRow";
UltraWbGrid1.DisplayLayout.RowAlternateStyleDefault.CssClass = "cssEvenRow";
It works for header but for rows it takes by default "cssOddRow" class for all row.
If you comment the cssOddRow line then it takes cssHeader class for Header as well as OddRow.it works fine for even row in this case.
Any Idea ?
Thanks,
Raju
Hey cliffl, Currently I am using Infragistic grid version 7.3.0.0
I am not sure about other versions...
Raju,
Do you know if infragistics 7.x has this issue?
paddepal said:Try removing all the inline styles on aspx page for the grid --rowstyledefault and rowalternatestyledefault. Then only set the cssclass on server side.
Ner..I tried that before definitely didn't fix it.
Try removing all the inline styles on aspx page for the grid --rowstyledefault and rowalternatestyledefault. Then only set the cssclass on server side.
Because I think the inline styles defined on aspx page are overriding the styles when you try to set on server.
Thanks for quick reply.
I have changed the browser property to XML but problem is still there.
Whether I am missing some thing ?
- Raju
Yes, I have the same problem when I upgraded from Infragistics 6.3 to 8.1 CLR35. If you change the "browser" property to "XML" it should fix it. I think it has to do with the way the control get renders.
Anyone able to shed some light with this issue?