列不可编辑
//注意要在开启行编辑之**前**完成设置editor为空的操作
var ee = $('#FYDetailGrid').datagrid('getColumnOption', 'oneUpVal');
ee.editor={};
单元格不可编辑
//注意要在开启行编辑之**后**设置该单元格不可用
var ff = $('#FYDetailGrid').datagrid('getEditor', { index:editIndex, field: 'oneUpVal' });
$(ff.target).attr('disabled', true);
//或者
$(ff.target).attr('disabled','disable');
一定一定要注意行编辑开启的顺序呐!
开启行编辑之后对于列的不可编辑的设置就无效了!