Skip to content

Commit 38fe8c6

Browse files
AddedRefreshandRefreshSorting
1 parent 13d0b8f commit 38fe8c6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/TableView.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,24 @@ private void UpdateVerticalScrollBarMargin()
758758
}
759759
}
760760

761+
/// <summary>
762+
/// Manually refresh.
763+
/// </summary>
764+
public void Refresh()
765+
{
766+
DeselectAll();
767+
_collectionView.Refresh();
768+
}
769+
770+
/// <summary>
771+
/// Refreshes the all sorting.
772+
/// </summary>
773+
public void RefreshSorting()
774+
{
775+
DeselectAll();
776+
_collectionView.RefreshSorting();
777+
}
778+
761779
/// <summary>
762780
/// Clears all sorting applied to the items.
763781
/// </summary>

0 commit comments

Comments
 (0)