DHTMLX Docs & Samples Explorer

moveRowUp(row_id)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

moves row one position up if possible

  • row_id - row id
<a href="javascript:void(0)" onclick="mygrid.moveRowUp(mygrid.getSelectedId())">Move selected row up</a>

See also: moveRow, moveRowDown, moveRowTo