issue of row id

hi,
there are 10 rows in my grid . I inserted new row to 4 th position ( using mygrid.addRow(3,"",3);). Now total row number is 11 .But row id’s after this 4 th row is not
changed . Is there any method to automatically change the row id ,when we add new row in between existing rows.

grid.attachEvent("onRowAdded", function(rId) {
  var newRowId = 1;
  grid.forEachRow(function(id) {
    grid.changeRowId(id,newRowId);
    newRowId++;
  }
});

This is the expected behavior. The id of the row is not changing automatically.
You should try to operate with the index of the row:
docs.dhtmlx.com/doku.php?id=dhtm … etrowindex

Also you may change the row id manually:
docs.dhtmlx.com/doku.php?id=dhtm … t_setrowid