Check documentation for the latest version 6.0 of dhtmlxSuite setStyle DHTMLX Docs

setStyle

modifies the default style of the grid and its elements

void setStyle(string ss_header,string ss_grid,string ss_selCell,string ss_selRow);

Parameters

ss_headerstringstyle def. expression for the header
ss_gridstringstyle def. expression for grid cells
ss_selCellstringstyle def. expression for the selected cell
ss_selRowstringstyle def. expression for the selected row

Example

mygrid.setStyle(
    "background-color:navy;color:white;font-weight:bold;",
    "","color:red;",""
);

Details

call the method before or after init()

Back to top