Need help and advice with adding datagridview contents to database
Posted on 2011-02-13
I am writing a .net EPOS and Stock Control system. basically I have the menu and the main EPOS screen completed, when someone clicks a value from the various items i.e. Chicken and Chips, the details get added to a row in a Data Grid View, which the user can click the row in the view to have all the values output to seperate text boxes to make easier to read. If there are 5 rows in the data grid view, what would be the best way of updating my locally installed MySQL database?
I would like it so that under a transaction of say the following:
1 x Large Chips 99p
1 x Chicken and Chips 3.99
1 x Chicken Burger 1.99
Then each individual row or item can be added both to the single transaction but also each row be added seperately as this is where the stock control would come in.
Can anyone give any advice on best way forward?