ComboBox and Binding Context Problem

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Job,

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

I hope this helps,

Cor
 
Thanks

someone suggested me this as well

specify a new Binding Context for your second GroupBox:

this.groupBox2.BindingContext = new BindingContext();
 
Back
Top