DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### setRowColor(row_id, color)

Required library edition:
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