المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Problem in Datagridview with multiple combobox windows c#



C# Programming
03-17-2010, 05:00 PM
I have one datagridview with three columns first is for category dropdown second for product dropdown third for price textbox all are datagridviewcolumns is taken.

My problem is that i want to show only those product whose category is selected from category dropdown and then price for those products which is selected by product dropdown. This is for each row for datagridview.

Now i want to save and update them in database with three fields 1.id 2.categoryid 3.productid 4.price and if there is any row in table then it populate when form load with rows in datagridview with appropiate value and then i want to change it again it give facility to change and add new record and then it save or update the data.

How Please give me any code or link if anybody have.

Thanks.
Diwakar