I have the C # Window form project and the MySQL ODBC connector on all local privileges with all privileges. I was also successful in filling the DataGrid view with data, but the changes I made have not been stored back into the database. How do I create a savings button?
In an easy, automatic way, a dataset to do this: Menu Data> Add new data source
When the wizard displays, select the database, dataset and select a new connection to connect to the database.
When you have the Datasource window in the dataset to transfer the dataset to an empty form and VS will create several buttons for you, which will include a Save button.
When you do this, you can see the code to see how it works and adapt to your own needs.
Best possible rank! Edit
Based on the comments you reply to, I can estimate that you are using the database adapters that you are using, which directly talks to the database, so Incorrect dependency on database connector At least I understand this (Generate headline table adapters to see DB Direct Amphols)
To resolve this, you must set the Generate DBDI methods in the table adapter and Only InsertCommand, UpdateCommand, and DeleteCommand
Comments
Post a Comment