Adding an Input Column to a DataGridView
Posted on 2009-05-09
I am developing a VB.NET forms application and I am trying to figure out the best way to approach a particular situation. I have a form that will contain a DataGridView that will display a list of products which I would like to take inventory for. I basically want to have a textbox at the end of the DGV that users will enter the amount of each product that they have in stock. When they click a submit button at the bottom of the form, the program will go through and make an entry in my Inventory table for each product based on the values in the textbox. What is the best way I should handle this? Can I have just a blank textbox column where I can associate the value with the product that is on the same row? Would I have to do some finageling with my Datasets in order to add a column I could store values in?