Background Color Based on data.

I have a Template Grid. For Clarity and grouping of data (they are sorted into the grouping) I want to use a different background color (colour if you are English) for each grouping. Currently, I have multiple Lines for each object which are only visible of the object is of the correct grouping. Each version of the line has a different background color. This works, but if a new grouping is added I will have to make a change to add the Template view details with a different color for the new grouping. I want to know if it is possible for the Style / CSS to read the background color from the database, so I don’t have to hard code the colors.  
1 answers

Have you taken a look at the EnumClass widget?

That might help you out. It would let you map an enum attribute to a CSS class.