方法1.datagrid 加个这属性就可以变色了
opts.striped = true;
方法2.还可以使用rowstylyer
rowStyler: function(index,row){
if (row.listprice>80){ return 'background-color:#6293BB;color:#fff;'; // return inline style // the function can return predefined css class and inline style // return {class:'r1', style:{'color:#fff'}}; } }