obj.defineRowProperty("Mybackcolor", function(row){
return this.getCellValue(0, row)=='true' ? "red" : "yellow";
});
obj.getRowTemplate().setStyle("background-color", function(){
return this.getRowProperty("Mybackcolor");
});
and also XML-based sample -
/javascript.forum.20517.5/applying-colors-to-rows-and.html