cancel
Showing results for 
Search instead for 
Did you mean: 

cell bg color

0 Kudos

Hi

i am stuck on the following code

<b>setCellBackgroundColor(int row,int col,Color colorNew),</b>

in which formatt should i pass the color

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This method requires one to create a Color Object using createColor(<some string>) method and then use the object to be passed as the newColor value.

<some string> can be a string (red blue green etc) or a hex value OR even an integer RGB value (not sure on that one though, just try it out).

jamie_cawley
Advisor
Advisor
0 Kudos

You can you

document.applet.createColor("#FF0000");

to create a color.

You could also just use the function

document.applet.getGridObject().setCellBackgroundColorAsString(1,1,"#FF0000");

Regards,

Jamie