Change color of grid cell of already loaded row

grid.cells("row1",15).setBgColor('#ff0000'); 

Doesn’t work. Any ideas? I want to change the color of the cell to red to indicate an error, ie while the user is editing the columns. I can set the text ok, just not the background color?

:confused:

Please, try to use the following method:
docs.dhtmlx.com/doku.php?id=dhtm … ltextstyle

Thanks for the reply. I tried that, still no luck. :frowning:

The following code works well for us:

mygrid.setCellTextStyle("row1",15,"background-color:#ff0000;");

Please, make sure that the needed row is loaded to the grid.
IF issue still occurs - please, provide with any kind of sample of your code.

var cell = grid.cells(1,15);
grid.setCellTextStyle("row1",15,"background-color:#ff0000;");
cell.setValue("Err");

The grid is loaded from a JSON object.

Still no luck. Any ideas?

grid.setCellTextStyle([b]1[/b],15,"background-color:#ff0000;");

That works :smiley:

Thanks for your help. :slight_smile: