Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Sort listView by Enum Name and not the Value

$
0
0

Hi,

I have listview and one of it's column has enum type. Now when I sort the list view using SortDescriptions of IViewCollection, it sort the column by Enum Value and not by Name. So column data doesn't sort by alphabetical order.

I have generic sorting logic, so do not want to make any changes in xaml to resolve the issue. Please provide me some code behind logic which I can use before using SortDescirptions to sort the listview.

Thanks,

Ayaz Shaikh


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>