sub_grid with dataprocessor

I noticed that there is not a working example of an updateble sub data grid that can save to the database. Has anyone been able to make this happen? It would be a nice example to see.

grid.attachEvent("onSubGridLoaded",function(sub){
        var dp = new dataProcessor("some.php");
        dp.init(sub);
        return true;
});

Subgrid is fully functional instance of a grid, so you can attach it to a separate dataprocessor, which will allow saving in DB all changes from the subgrid.