Table with dynamic styles for the row.

Hello All,

I need your help in coloring a table rows dynamically. I dont have styles defined in css files.
The color scheme is selected on run time.

I have tried CellStyleGenerator method along with CSSInject Addon, but the combination is not working.
Then I used addGeneratedColumn method to color each column with labels with HTML formatting. It works, but generates ugly table.!

Is there any other way of doing this?

Thanks in advance.