For more information, see Windows Forms Data Architecture.If the dataset includes constraints, you can temporarily turn constraints off before making any updates, and then turn them back on afterward.Since each record in a dataset is represented by a Data Row object, changes to a dataset are accomplished by updating and deleting individual rows.Additionally, new records can be inserted into the dataset by adding new Data Row objects to the Data Table objects' Rows collection.You can manipulate the collection directly to delete records.However, if you want to send changes to the database or to another process, the dataset has to maintain change information for deleted rows.In this way you will have a full control what's being saved and how you save it. :) Hi iturune, You can try to comment this line: my Data Set. Add(my Data Table); Since my Data Table is just a reference of my Data Set. That means the changes will not be updated to database. For the latest documentation on Visual Studio 2017, see Save data back to the database on docs. If you modify that data, it's a good practice to save those changes back to the database.
If you aren't using data binding, and are saving changes for related tables, you have to manually instantiate a variable of the auto-generated Table Adapter Manager class, and then call its Udpate All method.
If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
I have a form that uses a dropdownlist to allow the user to obtain a users details based on their selection from the list.
The first step is to update the dataset with new records, changed records, or deleted records.
If your application never sends those changes back to the data source, then you are finished with the update.