I'm doing a production order project and I have 7 combobox picking up the values from the same table (which are those of raw materials). I am using this code in load
of the form to load the combobox:
cmbMP1.DataSource = bllprodutos.DtMateriaPrima;
cmbMP1.DisplayMember = "Descricao";
cmbMP1.ValueMember = "ID";
cmbMP1.Refresh();
cmbMP2.DataSource = bllprodutos.DtMateriaPrima;
cmbMP2.DisplayMember = "Descricao";
cmbMP2.ValueMember = "ID";
cmbMP2.Refresh();
//.......
So far so good, when the form loads the list of ComboBox mounts, but here comes the headache. When I select any value from any of them all the other ComboBox get the same value, type I can not select different products between them.