ComboxBox DataBindings
-
Hello, I tried to fill combobox with the property : ComboBox1.DataSource = SelectByName() 'return a datatable ComboBox1.DisplayMember = "NOTES_TEXT" ComboBox1.ValueMember = "ID_NOTES" And it works well.. But when I try to do this on the same form : ComboBox1.DataSource = SelectAllName() 'return a datatable ComboBox1.DisplayMember = "NOTES_TEXT" ComboBox1.ValueMember = "ID_NOTES" ComboBox2.DataSource = SelectAllNotes() 'return a datatable ComboBox2.DisplayMember = "NOTES_TEXT" ComboBox2.ValueMember = "ID_NOTES" The combobox are binding but I have two times the same value : the combobox1 have de value (data) of the combobox2 !! If I do that on a different form, it's work !! :confused: Why.. it's two different DataSource..?! If it's because there is two times the same DisplayMember and ValueMember what I have to do ?? Thanks a lot for your answer.. Julien