get the value of subgrid in main grid

Hi,

I have grid and subgrid.
i want to get the value of subgrid to main grid. i am using event “onSubGridCreated” to create the sub grid. I want this sub grid value outside this method.
I am using method mygrid.cells(i,j).getSubGrid(), but its returning null.
Can any one help me how can i get the subgrid cells values on main grid?

Any help appreciated…

Thanks
Dhaval

getSubGrid method is for the “grid” exCell:
docs.dhtmlx.com/grid__columns_ty … likecolumn

Could you clarify what value do you need to get? the value of some cell of your subgrid or the value of a cell of a parent grid containing the subgrid?