ComboBox and Binding Context Problem

G

Guest

I have 2 group box Buy and Sell on a form. There is an account combo box in
both group boxes bound to same data source using DataSource, DisplayMember
and ValueMember. Problem is binding context is causing the value in both to
change when I change the value in one. Is there any way around this other
than adding the list members manually?

Thanks
 
C

Cor Ligthert

Job,

Create two seperated new dataviews and bind your comboboxes too those, than
your problem is gone.

I hope this helps,

Cor
 
G

Guest

Thanks

someone suggested me this as well

specify a new Binding Context for your second GroupBox:

this.groupBox2.BindingContext = new BindingContext();
 

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