cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cell background colour

0 Likes
268

hi,

can anyone give me idea on changing cell background colour,

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

but it's not working.

thanks,

karthick.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Did you try using the following to create a color variable and then pass it as follows:

var myColor = document.iGrid.createColor('ff9900')

setCellBackgroundColor(1,3,myColor)

Answers (2)

Answers (2)

abesh
Contributor
0 Likes

Hi Karthick,

As I see here : , you've already asked this question before !

Please keep in mind the following points before you post another question :

1) NEVER EVER double post ! If your problem was not solved, please append in the existing thread.

2) Assign points and close the thread if your question was answered. As I can see in the link above, you've not assigned points.

If you are facing any problem in using this forum or have any questions, feel free to contact me !

Regards

Abesh

0 Likes

Hi,

sorry for repetition of question....

Som,

i have tried out,

var myColor = document.iGrid.createColor('ff9900')

setCellBackgroundColor(1,3,myColor)

.

it's working fine now....

Thanks

Karthick

Former Member
0 Likes

glad that worked out for you.

as always....award points for helpful answers and mark the thread as answered.

Former Member
0 Likes

Its gr8 that at last u get peace in ur mind though those same suggestions were provided in the previous thread.

<b>NOW PLEASE CLOSE THIS THREAD AS <u>ANSWERED</u></b>

Former Member
0 Likes

Karthik

This is quite clear that u hv posted the same problem a fwe days earlier.

Again posting same problem? still r u not finding with available answers/tips to ur previous thread??

Or can u not post further if the available tips/suggestions don't work for u??

Also u may use

<b>document.iGrid.getGridObject().setCellBackgroundColorAsString(1,1,"<ColorString>"); </b> where <ColorString> is HTML Color Code Like #C038C0.

After setting just click on the grid to see the change of color of that cell.

Regards

Som