DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### moveRow(rowId,mode,targetId,targetGrid)

Required library edition:
Required library file: dhtmlxgrid_drag.js

move row

- rowId - source row Id
- mode - moving mode (up,down,row_sibling)
- targetId - target row in row_sibling mode (optional)
- targetGrid - used for moving between grids (optional)

      //move row up
      mygrid1.moveRow("row1","up");
      //move row down
      mygrid1.moveRow("row1","down");
      //move row with id "row1" after row with id "row2" in grid[2]
      mygrid1.moveRow("row1","row_sibling","row2",mygrid2);

See also: moveRowTo, moveRowDown, moveRowUp