I am using the dhtmlXGrid extended mode, subgrig with in a g

Subgrid container has the same width as parent grid, and its height based on content of subgrid ( basically - subgrid operates in autoheight mode )
It possible to change some behaviors of subgrid, but logic of container size detection is hardcoded, the only way to update it - code modification.