By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 765 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

sync combo boxes in datagridview

P: n/a
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
Jan 12 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Can you show your code for doing the bindings?

Robin S.
-----------------------------------------------------
"Redback" <Re*****@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
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

Jan 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.