function onLoadSuccess(data) {
var rows = $("#DataGrid").datagrid("getRows");
if (rows.length > 0) {
rows = $("#DataGrid").datagrid("getSelections");
if (rows.length == 0)
$('#DataGrid').datagrid('selectRow', 0);
}
else {
$('#dgGD').datagrid('loadData', { total: 0, rows: [] });
$('#dgYS').datagrid('loadData', { total: 0, rows: [] });
}
}