Wpf combobox not updating when source updates

The approach I went with uses a Collection View which is a class included with .

NET that encapsulates a list and the concept of a current item as well as supporting the INotify Property Changed interface. I set the Is Sychronized With Current Item to true to allow us to track the current item on the Items Source.

Items (which means it must be in your Columns collection). You would need to either return the same object, or override the Equals method (and potentially the == and ! If this is your issue, it's the same problem as in this question.

I have an updating issue with Binding in my Combo Box.

The code in the View Model first creates the List, and then creates a Collection View based on that list.

This allows us to set the Current Item from the View Model as well as get notified whenever the Current Item changes.

Both contain a Combo Box that is filled with the list from the resource section. My Item List is the list of choices bound to Combo Box. I suspect you'll need to make the Selected Item binding update the source on Property Changed for this to work.

Selected Item="" I'd make the Cell Template and Cell Editing Template both reference your edit template while debugging this, to eliminate the other, irrelevant, template until you get it sorted out.

It runs the filter method allright but the View wont update even with my Collection View. I really liked Collection View approach so would be nice i could stick to that.

The combo Box Dropdown just updates the first time it is opened and doesn't update after that.

So if I edit the First Name in the textbox and click the dropdown and then edit it some more and click the dropdown again, we end up with 3 different 'Full Name' values being displayed for the Selected Person.

One consideration is that Silverlight doesn’t seem to support Collection View at the moment.

Even if some month were gone since you published your article it provides exactly what I was looking for.

Search for wpf combobox not updating when source updates:

wpf combobox not updating when source updates-23

While there are lots of examples of how to do this with Text boxes, List boxes, and even master-detail views, it seems that examples for binding Combo boxes are a little thin on the ground.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “wpf combobox not updating when source updates”