Though other style attributes work fine, the background-color of header rows cannot be set by setHeader(), attachHeader(), or setStyle.
Example:
[code]mygrid.setHeader(“Title,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan”, null, [“background-color:#00FF00;text-align:center;color:red;”, , , , , , ]);
mygrid.attachHeader(“Title,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan”, [“background-color:green;text-align:center;color:red;”, , , , , , ]);
mygrid.setStyle(“background-color:green;border-style:solid;border-width:1px;border-color:white;”, “”, “”, “”);
[/code]
Each of these SHOULD cause the header of the grid to have a green background color, but none of them do so. I would think this shoudl override whatever is set in the linked stylesheet (dhtmlxgrid.css) but it does not. Does anybody have any insight?
Thanks,
–Jim