Required library edition: Required library file: dhtmlxgrid.js
changes id of the row to the new one
mygrid.changeRowId("old_rowID","new_rowID");
See also: setRowId