I'm having an issue with a WPF Datagrid's DataGridTemplateColumn and updating the items that display on the ComboBox based off of a user's interaction. Since the program is database bound, it doesn't make sense to load all items from the database at once, instead it uses the Entity Framework to pull what the user requests at a given moment.
To facilitate a view that's compact, the next/previous buttons are on the combobox template, as well as search functionality, the issue I'm running into is: When the templated comboboxes are in a datagrid, next/previous does not function. Outside of a datagrid they function properly.
I've even tried using the knowledge that the Combobox is present and manually pulled it from the visual tree by doing a search for that combobox by name, pulled its binding for the itemssource and told it to update. Nothing happens.
Here is an image of what I mean below:
The display DOES update once I select a new cell; however, since I capture when it's about to enter edit mode and update the list to contain the item selected (for binding purposes, ComboBoxes don't like to have a selected item that's not in its item set.)
As you can imagine, this is a rather big issue. It's difficult to continue developing this until an resolution is found. Is this a known issue with Datagrids? If so, I might have to roll my own. Which I don't want to do for performance reasons, I'm no MVVM expert, the only reason the UI looks as it does is it's basically defining itself, within itself.