This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Adding color to a grid cell

graybeardtx - Monday, March 12, 2012 2:06 PM:

I want to add a highlight color to a grid cell when it has a certain value. I have been trying to decipher how they get the highlight color in the Project grid but being a closet programmer, I'm not making much progress. Anyone care to point me in the right direction?



fli - Thursday, March 15, 2012 5:53 AM:

Hi John,

You can set the "css" property 

It can be done like like this:

 

string myCss = ".property_name{ background-color: " + colour_code }"  ;

  Item.setProperty("css",myCss);

return item;

 

/Christoffer