Grid-like editor

The examples code for Tree-like editor and Grid-like editor on the following documentation page are absolutely the same!
In the example … _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.

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.