DHTMLX Docs & Samples Explorer

setRowColor(row_id, color)

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

sets background color of row (via bgcolor attribute)

  • row_id - row id
  • color - color value
   mygrid.setRowColor("row1","red");

Please make sure that necesary row is loaded before calling this method. Note background color specified via “bgcolor” attribute has lower priority than background color specified in CSS.

See also: setStyle, setColumnColor, setRowTextStyle