Dear all,
I have a problem with UserControl in .NET. I have a table Product. It has 2 columns: Product Name and Price .Ex
ProductName Price
Coca Cola 1$
Pepsi 2$
Tiger Beer 5$
Now I want to build a UserControl : a combox use load ProductName and a textbox load Price. And they depent on total records in table Product. Mean, when i add usercontrol on WinForm, we will see 3 rows.(If we have 5 records in table Product we have 5 rows).
Then, I have a table Order. I want to insert these value in this table. Please help me how to load data to control and use those values insert to Order table on database.
Thanks a lot,
DoiKhongDoiThu