DHTMLX Docs & Samples Explorer

setColumnColor(clr)

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

colorize columns background.

  • clr - comma delimited colors list
   //set colors for the first 3 columns
   mygrid.setColumnColor("white,#d5f1ff,#d5f1ff");

See also: setRowColor