grid.on("drawcell", function(res){ var record = res.record; var field = res.field; var value = res.value; if (field == "checkquantity" && Number(record.deliveryquantity) != Number(record.checkquantity)){ res.cellStyle = "color: red;"; } });