E
ECathell
I am trying to databind 2 combo boxes to the same datasource but different fields using the same lookup table. The information in combobox2 is duplicating combobox 1(ie it appears to be gathering the wrong information) I have verified the proper information through query analyzer....
Me.FormatName1ComboBox.DataSource = LabelFormats
Me.FormatName1ComboBox.DisplayMember = "Formatname"
Me.FormatName1ComboBox.ValueMember = "FormatName"
Me.FormatName1ComboBox.DataBindings.Add(New Binding("SelectedValue", ProductsBindingsource, "FormatName1"))
Me.FormatName2ComboBox.DataSource = LabelFormats
Me.FormatName2ComboBox.DisplayMember = "Formatname"
Me.FormatName2ComboBox.ValueMember = "FormatName"
Me.FormatName2ComboBox.DataBindings.Add(New Binding("SelectedValue", ProductsBindingsource, "FormatName2"))
Me.FormatName1ComboBox.DataSource = LabelFormats
Me.FormatName1ComboBox.DisplayMember = "Formatname"
Me.FormatName1ComboBox.ValueMember = "FormatName"
Me.FormatName1ComboBox.DataBindings.Add(New Binding("SelectedValue", ProductsBindingsource, "FormatName1"))
Me.FormatName2ComboBox.DataSource = LabelFormats
Me.FormatName2ComboBox.DisplayMember = "Formatname"
Me.FormatName2ComboBox.ValueMember = "FormatName"
Me.FormatName2ComboBox.DataBindings.Add(New Binding("SelectedValue", ProductsBindingsource, "FormatName2"))