Form Integration, omit some action from submit

Submit Mode: Submit only the changed rows (the default mode)

How do I omit some actions in the grid from register as changes in the grid?
Example:
When I clear the grid for loading another set of rows this action registers as if the rows are deleted (which they are) and these deletes are sent in the next form submit.

TrapGrid.selectAll(); TrapGrid.deleteSelectedRows();

Can I somehow omit some actions from register as changes?
I can use ‘grid.cells(i,j).cell.wasChanged=true;’ for cell values but I there something for row deletions/adding?

Does this do the trick?

TrapGrid.submitAddedRows(false); <-- Turn off TrapGrid.selectAll(); TrapGrid.deleteSelectedRows(); TrapGrid.submitAddedRows(true); <-- Turn on again

I gave up. Now using:

TrapGrid.submitOnlyChanged(false);

And sorting all rows out on the backend.