$('#dg').datagrid('enableCellEditing');$('#dg').datagrid('options').onBeforeSelect = function(){return true;};