Programming
WPF: ListView with Ascending/Descending Sorting
by admin on Feb.22, 2013, under Programming
Brief example code of how to add ascending or descending sorting to your ListView in WPF:
Ascending sorting:
ListView1.Items.SortDescriptions.Add(new System.ComponentModel.SortDescription("Content", System.ComponentModel.ListSortDirection.Ascending));
Descending sorting:
ListView1.Items.SortDescriptions.Add(new System.ComponentModel.SortDescription("Content", System.ComponentModel.ListSortDirection.Descending));