How to move a Row in Tree grid

Hi Knowledge Base Team ,

I am working with dhtmlTree Grid , I am in need to move a row down wards or upward .
for that which js file i have to include .  I am getting an error in the console that , “myTreegrid.moveRow is not a function.” , I am using the function as in the way :

mygrid.moveRow(mygrid.getSelectedId(),“down”);

for downward movement and

mygrid.moveRow(mygrid.getSelectedId(),“up”);

for upward movement

Please assist me .

Thanks in advance
Swaroop C B

To use moveRow() method you have to include file dhtmlxgrid_drag.js.