I have a combobox that has a datacontext set to a 'Customer Type' that is a customer CRUD window in WPF that itself has a datacontext of 'Customer' - when i scroll through my customer table entries that have been populated into a listbox,
all of the corresponding textboxes on my CRUD window update to reflect the values stored in the Customer table except the combobox. If I change the datacontext of the combobox to be 'Customer' the text updates correctly when scrolling through but the
dropdown contents are now duplicated to match the number of records. So my problem is this;
How can I display the itemssource as the 'Customer Type.Customer_Type' datacontext, but display the Text as 'Customer.Customer_Type'?
The closest i could compare it to would be a winforms example of setting the combo's DataSource to 'Customer_Type' on the combo with a displaymember of 'Customer_Type' and then making the DataBindings 'Text' property of the combo to be 'Customer.Customer_Type'
so it displays the value stored in customer but as soon as you drop it down it shows non-repeated values that are contained in customer_type.customer_type.
Right now in wpf if the datacontext is customer, the combo displays customer_type as follows:
View Complete Post