Skip to content

Commit

Permalink
Wpf: Maintain focus of TreeGridView after calling ReloadItem
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Apr 1, 2024
1 parent 398327f commit 5851199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Eto.WinForms/CustomControls/TreeController.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,12 @@ public void ReloadItem(ITreeGridItem item)
var row = IndexOf(item);
if (row < 0)
return;
if (parent == null)
Handler.PreResetTree();
OnTriggerCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, row));
OnTriggerCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, row));
if (parent == null)
Handler.PostResetTree();
}

public bool CollapseRow (int row)
Expand Down

0 comments on commit 5851199

Please sign in to comment.