The statement
$.extend(true,[],rows) deep copy an array. The code below also works well but these two datagrid components use the same data rows.
var rows = $('#dg').datagrid('getRows');
var ndg = $('#newdg').datagrid();
ndg.datagrid('loadData', rows);