Two BindingContext's don't work
-
I'm having trouble using two seperate BindingContext's on the same form. The form contains two group boxes, each containing a TextBox. The TextBoxes are bound to the same field of the same BindingSource. Each group box has it's own BindingContext: void BindControls() { groupBox1.BindingContext = new BindingContext(); groupBox2.BindingContext = new BindingContext(); textBox1.DataBindings.Add("Text", projectsBindingSource, "prDescription"); textBox2.DataBindings.Add("Text", projectsBindingSource, "prDescription"); } projectsBindingSource is of type BindingSource! Now I would expect that I could scroll the context in one group box independantly of the other. However, when I execute the following code: BindingManagerBase projectsBinding; projectsBinding = groupBox1.BindingContext[projectsBindingSource]; projectsBinding.Position++; Both groupBox1 and groupBox2 scroll to the next record. Ant idea's Regards, Kees Vermeulen