I have a requirement to hide/show a row island on a WHDG. I have tried handling the InitializeRow event on Server side and then applying smtg like: e.Row.CssClass = "styleCell"; which works well when we are dealing with a single parent row. however, when the parent is bounded to a child row, the style does not take effect; and I have applied it to both parent and child rows.
Thanks for your help!
javier
Hi Javier,
In order for the row styling CSS class to be applied it needs to be defined using selectors as such:
tbody.igg_Item>tr.rowStyle>td{ background-color:Green !important;}
background-color:Green !important;}
Then, in InitializeRow you can use:
e.Row.CssClass = "rowStyle"
A detailed guide on styling the WebDataGrid can be found at:
http://forums.infragistics.com/blogs/engineering/archive/2010/08/25/webdatagrid-css-styling-guide.aspx
Please contact me if you have any questions.
Best Regards,Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
Please feel free to contact me if you need further assistance.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
I implemented as you described and now it works fine.
THnaks