Color depending on value of cell

hi, I want to switch to color the cell depending on the value of a particular cell

You can use onEditCell event to change the color of cell after it was changed
    grid.attachEvent(“onEditCell”,function(stage,id,ind,value){
       if (stage == 2){
             grid.setCellTextStyle(id,ind,“backround-color:”+(value>0?“green”:“red”)+";")
        }
       return true;
    });