Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by amhicraig@yahoo.com on Dec 10, 2007 15:27
open dhtmlx forum
Changing grid header color

I want to change the grid header color,without using a color image.How can i change the color of my grid header?
Answer posted on Dec 11, 2007 01:38
a) for all grids
    you can change default setting in dhtmlxgrid.css
    div.gridbox table.hdr td {              << the class name may differ for different skins
        background-Color:#D4D0C8;  << it is here

b) for some specific grid - you can use third parameter of setHeader command
    grid.setHeader("A,B",null,["background-color:red;","background-color:blue;"]);