如何直接改datagrid的值?

$(dialoggrid).datagrid('beginEdit',
index);



var editor =
$(dialoggrid).datagrid('getEditor', { index: index, field: field });



if (editor) {



editor.actions.setValue(editor.target,
row[field]);



}



$(dialoggrid).datagrid('endEdit',
index);