//自己设置编辑时显示的内容
$('#purchasegroupname'+index).html(name);
//单元格真实内容
$('#material_datagrid').datagrid('getRows')[index]['purchasegroupname'] = name;
$('#material_datagrid').datagrid('getRows')[index]['purchasegroupcode'] = code;