If you only want to get the row to be selected, please try the 'onBeforeSelect' instead.
$('#dg').datagrid({
onBeforeSelect: function(index,row){
var selected = $(this).datagrid('getSelected');
if (selected && selected != row){
console.log(selected)
}
}
})