inter change column to rows

hi,
i’m using a grid with around thousand records. can u pls let me know the way of doing following.
1.once a row selected, need to copy header and selected row to another grid with transpose effect.
2.when using treeview with dhtmlx.js, need to convet that treeview to treegrid simply, currently attach with attachtree().

regards,
suminda.

1.once a row selected, need to copy header and selected row to another grid with transpose effect.
You may try use getColLabel() method to get the header’s labels:
docs.dhtmlx.com/doku.php?id=dhtm … olumnlabel

getValue() method can be used to to get the value of a cell:
docs.dhtmlx.com/doku.php?id=dhtm … t_getvalue

2.when using treeview with dhtmlx.js, need to convet that treeview to treegrid simply, currently attach with attachtree().

Unfortunately the issue is not clear. Please, clarify the issue.

hi,
when using grid and tree grid in same layout, since both use “attachgrid” to attach, how to use attach method to initialize both .

regards,
suminda

Unfortunately the issue is not clear.
Please, try to explain your requirements in more details.