I've used DataGrid with below EditSettings:
{
allowEditing: true,
allowAdding: true,
allowDeleting: true,
mode: 'Batch',
newRowPosition: 'Bottom',
showConfirmDialog: false,
showDeleteConfirmDialog: false,
allowNextRowEdit: true,
}
When I try to export data (Excel, Pdf, CSV) or use the search box, all changes (Added, Deleted, Edited rows) have been gone!