Преглед изворни кода

Fix to refresh problem with tree grid

Kenric Nugteren пре 1 година
родитељ
комит
8d551ecb85
1 измењених фајлова са 4 додато и 1 уклоњено
  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)