Skip to content

Commit f03396b

Browse files
authored
Merge pull request #185 from RolandBuchholz/AddedRefreshandRefreshSorting
Refresh and RefreshSorting available in Tableview
2 parents 916cd9b + f22047a commit f03396b

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+
/// Refreshes the items view of the TableView.
763+
/// </summary>
764+
public void RefreshView()
765+
{
766+
DeselectAll();
767+
_collectionView.Refresh();
768+
}
769+
770+
/// <summary>
771+
/// Refreshes the sorting applied to the items in the TableView.
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)