var row = $('#mydg').datagrid('getSelected');console.log(row);
$('#mydatagrid').datagrid('selectRecord', idValue);