DHTMLX Docs & Samples Explorer

setStyle(ss_header, ss_grid, ss_selCell, ss_selRow)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

modify default style of grid and its elements. Call before or after Init

  • ss_header - style def. expression for header
  • ss_grid - style def. expression for grid cells
  • ss_selCell - style def. expression for selected cell
  • ss_selRow - style def. expression for selected Row
   mygrid.setStyle("background-color:navy;color:white; font-weight:bold;", "","color:red;", "");

See also: setSkin, setRowTextStyle, setCellTextStyle, enableAlterCss