1
Answer

Adding checkbox and textbox to gridview using ASP.Net

Aly Lucas

Aly Lucas

11y
828
1
I'm trying to add a checkbox and textbox to a gridview list of products.

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! :)
Answers (1)