LINQ + Combobox
-
Im haveing a little trouble with one combobox. I have a table with two fields. One with codes and one descriptions of the code. Now, i also have a customers table wich has one code atached to it. I want to populate the combobox with all the codes from the first table and then select the code from the current customer in the customers table. Im trying but i cant seem to get it right. Further i want to be able to change the item in the combobox so that it writes the code that i change back to the customers row in the customers table. How is this done? Thanx
-
Im haveing a little trouble with one combobox. I have a table with two fields. One with codes and one descriptions of the code. Now, i also have a customers table wich has one code atached to it. I want to populate the combobox with all the codes from the first table and then select the code from the current customer in the customers table. Im trying but i cant seem to get it right. Further i want to be able to change the item in the combobox so that it writes the code that i change back to the customers row in the customers table. How is this done? Thanx
-
Im haveing a little trouble with one combobox. I have a table with two fields. One with codes and one descriptions of the code. Now, i also have a customers table wich has one code atached to it. I want to populate the combobox with all the codes from the first table and then select the code from the current customer in the customers table. Im trying but i cant seem to get it right. Further i want to be able to change the item in the combobox so that it writes the code that i change back to the customers row in the customers table. How is this done? Thanx
All you need is databinding. . Hope you know the databinding using LINQ. if not tell me i can explain you a bit. .