Pivot > Pivot Assembly Interfaces > IPivotTable > IPivotTable.Cancel
Cancel;
The Cancel method exits the edit mode without saving made changes.
See also:
IPivotTable