Repo to show WPF TabControl error with DataGrid
Steps to repro:
- Launch program.
- Sort the "Tab1"'s DataGrid by pressing "Value".
- Start editing the value by double-clicking the cell with 0 in it.
- Press the second tab "Tab2".
- The program crashes with error "System.InvalidOperationException: ''Sorting' is not allowed during an AddNew or EditItem transaction.'"