By bloid
via codeproject.com
Submitted: May 11 / 13:15
By default there is no easy way of sorting a ListView in WPF. While there is a sample available on MSDN on how to sort a ListView it isn’t very satisfying. The sample sorts the ListView based on the header of the column instead of the actual DisplayMemberBinding attribute. This is not an optimal solution, because column headers don’t necessarily contain text. Secondly it could be that the column header differs from the actual property name. Next to that I assume that this isn’t working very well in a Multilanguage application either.
SaveShareSend
Tags: .net, frameworks
Add your comment