不需要按回车键出现换的方法:
selModel: new Ext.grid.RowSelectionModel({
onEditorKey: function(field, e) {},
singleSelect :true
})
状态为录入GRID信息变红色的用这个方法
grid.getView().getRowClass = function(record, index){
return (record.get('auditFlag') == 0 ? 'red-row' : 'white-row');
};