I have inherited a WPF/ipy app which is using data binding / CollectionView to interact with a customer list. Steps are roughly:<br><br>1. query cust. list from DB, sorted by name<br>2. bind this to a CollectionView<br>3. step through the list, displaying 1 cust. at a time using the CollectionView.Next/Previous (forget the exact name) operators,<br>


    moved thru the list in alpha-sorted order<br>4. re-sort the list by, say, customer type. Still moves thru the list with Next/Previous except now sorted by type, no longer by alpha.<br>    Perfect so far, but............<br>


<br>5. New customers (maybe) have been added to the DB. I re-query the customer list to pick up any new ones. The new list is sorted by  customer type (remembered my last sort criteria).<br>6. bind this to a CollectionView. <br>


7. step thru the list, using Next/Previous on the CollectionView. The customers appear in <b>utterly random order</b>, not by alpha, not by customer type.<br><br>So, I&#39;m a bit stymied. I&#39;ve been looking through the MSDN but haven&#39;t seen anything that addresses how to update CollectionView/data binding to reflect new data in the customer list, or whether it is, in fact, possible to do so. I&#39;ve found a couple of hints, and tried dozens of variations on the code that seems like it should &quot;just work&quot;. It&#39;s quite tempting to just maintain my own lists and navigation in python.<br>

<br>I&#39;ve deliberately NOT included any code; for one thing, it&#39;s scattered over a number of modules of python (and XAML) but am interested in how any of you would approach the re-binding-to-new-data problem; also, if any of you tried it and found it equally as bizarre and arcane and impossible as it seems to be for my app.<br>

Thanks!<br>Ken<br>