WPF Datagrid ComboBoxes and databinding

Sep 2, 2010 at 8:25 AM

I'm finding it difficult to get my head around the databinding requirements for a combo box

I'd like to know if there's a simple tutorial or project I could compare.

OK my problem is simple. 2 Related tables let's call them Customers and Orders

I want a wpf form that edits the orders

and allows me to change the customer with a combobox

the combobox is populated with a list of all customers and it's current value is the currently selected orders customer.

 

All the help i seem to find focuses on creating a Data entry form. In this case there is no need for the combobox to have a preselected value. The order doesn't exist yet.

But I want to use an Edit form. The customerID is known for each Order.

 

I also want to use combo boxes on an EDIT  order form containing a datagrid. The column containing StockItemID needs to be a combo box that displays related data from a Stock Table field StockDescription

 

thank you for your help.  

Nov 1, 2010 at 9:08 PM

Have you had any luck with this?  I have the same issue