Browse Source

Fix to refresh problem with tree grid

Kenric Nugteren 1 year ago
parent
commit
8d551ecb85
1 changed files with 4 additions and 1 deletions
  1. 4 1
      inabox.wpf/DynamicGrid/UIComponent/DynamicGridTreeUIComponent.cs

+ 4 - 1
inabox.wpf/DynamicGrid/UIComponent/DynamicGridTreeUIComponent.cs

@@ -358,7 +358,10 @@ public class DynamicGridTreeUIComponent<T> : IDynamicGridUIComponent<T>, IDynami
 
     private void _tree_SelectionChanged(object? sender, GridSelectionChangedEventArgs e)
     {
-        Parent.SelectItems(SelectedRows);
+        if(Parent.IsReady && !Parent.IsRefreshing)
+        {
+            Parent.SelectItems(SelectedRows);
+        }
     }
 
     private void _tree_SelectionChanging(object? sender, GridSelectionChangingEventArgs e)