Required library edition:
Required library file: dhtmlxgrid_drag.js
move row
Returns moved item ID
//move row with id "row1" after row with id "row2" mygrid1.moveRowTo("row1","row2","move"); //copy row with id "row1" from grid[1] as child of row with id "row2" in grid[2] var movedId=mygrid1.moveRowTo("row1","row2","copy","child",mygrid1,mygrid2);
See also: moveRowDown, moveRowUp, moveRow