sync combo boxes in datagridview

G

Guest

Hi All,
slight problem I hope someone could shed some light on.

I am using VS 2005.

In a datagridview I have 2 comboboxes that are both bound to a table field
called "empCode". This is an employee code.

I have a lookup datatable which I populate Employees employee code (empcode)
and and employee name.

I then have a dataview and a bindingsource which are bound to this datatable.

I then bind the two combo boxes to the bindingsource (ie they are both bound
to the same BS).

Now, when the user selects a value in the combo box in the datagridview, I
would expect the other combo box to move to the same value and display it.

This does not work however. Can anyone recommend a way?

thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top