Fix hang on grid update
This commit is contained in:
parent
b37472a954
commit
777dfe4c62
4 changed files with 15 additions and 10 deletions
|
|
@ -105,6 +105,8 @@ namespace LibationWinForms.GridView
|
|||
string existingFilter = syncBindingSource.Filter;
|
||||
Filter(null);
|
||||
|
||||
bindingList.SuspendFilteringOnUpdate = true;
|
||||
|
||||
//Add absent books to grid, or update current books
|
||||
|
||||
var allItmes = bindingList.AllItems().LibraryBooks();
|
||||
|
|
@ -157,6 +159,8 @@ namespace LibationWinForms.GridView
|
|||
}
|
||||
}
|
||||
|
||||
bindingList.SuspendFilteringOnUpdate = false;
|
||||
|
||||
//Re-filter after updating existing / adding new books to capture any changes
|
||||
Filter(existingFilter);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue