The gridview is populated from a Product table (ProductID, ProductName, Price) in SQL DB. I'm trying to get each line of the gridview to have a checkbox and textbox so the user can select the row and enter a quantity of the product then and store it in Product_Order table(Product_OrderID, ProductID, Quantity), after all the products they are ordering are checked w/ quantities input next to each line, the list is inserted into the database via a button event.
Can you help me how to do this? Is gridview was the best control in for doing this? Thanks in advanced! :)
Posted Sep 30, 2013, 2:26 AM
You need to write javascript to remove the readonly attribute from txtQty textbox.
The above html markup is for an idea.
Please let me know, if you need to more information.