Another solution is to loop all the rows and call 'checkRow' method on specified rows in 'onLoadSuccess' event.
$('#dg').datagrid({
onLoadSuccess: function(data){
for(var i=0; i<data.rows.length; i++){
var row = data.rows[i];
if (row.listprice>30){
$(this).datagrid('checkRow',i);
}
}
}
});