Required library edition: Required library file: dhtmlxgrid.js
sets new id for row by its index
//set new id for the first row mygrid.setRowId(0,"new_row_id");
See also: changeRowId, getRowId