Grid-like editor

The examples code for Tree-like editor and Grid-like editor on the following documentation page
docs.dhtmlx.com/grid__columns_types.html are absolutely the same!
In the example dhtmlx.com/docs/products/dhtmlxG … _grid.html
grids placed in divs. How I can use grid-like editor if I docking all components in layout cells?
What is the third param in setSubGrid function?

Unfortunately the the sub-grid’s container should be attached to the external div. So, your grid may be attached to the layout’s cell, but the sub-grid should be attached to the div.

setSubGrid(subgrid,2,0)
subgrid - the name of the subgrid object
2 - the column of the main grid, which should contain the subgrid
0 - the column of the subgrid. it’s value will be displayed in the main grid cell.