Tim Hibbard

Software Architect for EnGraph software


News





Add to Google





My Stats

  • Posts - 593
  • Comments - 387
  • Trackbacks - 507

Twitter












Tag Cloud


Recent Comments


Recent Posts


Article Categories


Archives


Post Categories


Image Galleries


EnGraph Blogs


Links


Other


Roll



Using the CollectionViewSource is a good way of binding to a datasource and letting the XAML determine the sorting and grouping of the data. However, as your datasource changes, the grouping and sorting is not automatically "re-calculated", forcing your code to be smarter that it should be. I found a class today on MSDN forums that inherits from CollectionViewSource and adds automatic refresh capabilities. This code is smart enough to resort your items, regroup your items and even add new groupings as needed.

Some good CollectionViewSource links:



posted @ Tuesday, May 20, 2008 5:19 PM |

Comments

No comments posted yet.
Post a comment





 

Please add 7 and 8 and type the answer here: