I want to select the subgrid parent row.How can I do this?

Hello! I am using a grid with subgrids…my problem is that when selecting a row from subgrid I want to select the subgrid parent row.How can I do this?
TIA

Can be done as

grid.attachEvent(“onSubGridCreated”,function(subgrid,master_row){
    subgrid.attachEvent(“onRowSelect”,function(){
       grid.selectRowById(master_row);
       return true;
    })
    return true;
});