myListView.Items.SortDescriptions.Clear();
myListView.Items.SortDescriptions.Add(new SortDescription("AttributeName", ListSortDirection.Ascending));
This will keep the listview sorted even if it is bound to an ObservableCollection.
Random solutions to software development problems that I find helpful.
myListView.Items.SortDescriptions.Clear();
myListView.Items.SortDescriptions.Add(new SortDescription("AttributeName", ListSortDirection.Ascending));
No comments:
Post a Comment