Sorting a ListView in WPF – Part II

Posted by marianor on ASP.net Weblogs See other posts from ASP.net Weblogs or by marianor
Published on Mon, 10 May 2010 16:12:57 GMT Indexed on 2010/05/10 16:14 UTC
Read the original article Hit count: 824

Filed under:
Some time ago I wrote a post about how to sort a ListView by clicking on the header of the column. The problem with that solution was that you needed to implement it each time and you have to define an explicit header for each column. As a more general solution I use attached properties to extend the ListView and GridViewColumn . The first attached property is tied to the ListView itself, and it indicates that the control supports sorting. This property attach or detach to the Click event of the...(read more)

© ASP.net Weblogs or respective owner

Related posts about wpf