3.0.5

Alternate background color of each cell

It possible of alternate each row backgroung color?
i use:

obj.setId("grid1");

document.write(obj);
document.getElementById("grid1.data.item:1.item:2").style.background = "red";

but desaperete the scroll....
Susana
August 23,
Look under www.Activewidgets.com - Menu -Reference
And then inside the right tree :
Grid Control / Grid Tutorial (How To...) / Styles / Rows / Alternate bacground col...
August 23,
It possible to change cell's backgroung color?, i am using this property:

obj.setId("grid1");

document.write(obj);
document.getElementById("grid1.data.item:1.item:2").style.background = "red";
but when i used, the scroll disappear
Susana
August 23,
Never use getElementById when working with AW objects. Use the AW built in methods as described in the tutorial mentioned above, a link to it is provided below:

http://www.activewidgets.com/grid.howto.style.rows/alternate-background-colors.html
Jim Hunter
August 23,

This topic is archived.

See also:


Back to support forum