Hmm … i think i need to say that it’s not mainly important to change color of a column. I do this in a second step. I need to proof a row, and when everything is OK, i need to mark this as OK. I do this with a button inside the row.
OK … this works for me but if i use “setRowColor” the row is colorized but i don’t see the new color. I still see the color of “the selected row”. Is there any way to refresh the row?
I tried this with
if (ind == 14) {
Grid[1].cells(id, 17).setValue("1");
var farbe = "#99E597";
}
Grid[1].forEachCell(id, function(cellObj,cInd){
Grid[1].setCellTextStyle(Grid[1].getRowId(id-1),cInd,"background-color:"+farbe);
});
which works great … but … if i try what you told me before Grid does not colorize:
if (ind == 14) {
this.cells(id, 17).setValue("1");
var farbe = "#99E597";
}
this.forEachCell(id, function(cellObj,cInd){
this.setCellTextStyle(this.getRowId(id-1),cInd,"background-color:"+farbe);
});