Thank you very much that was what I was looking for!
Another question: How can I select items from the gridview and add them to another table? The app I am making must list products sold by a business to the customer and the customer must then select the items he wants to buy. These items must then be
added to the table (shopping basket). But the item must remain in the gridview (database) so that the customer can click on it again and then increase the quantity in the basket table.
Any ideas? I'm really struggling to work with the databases in an website application. I have only worked with it in normal windows form applications..