Updating database from datagrid

As my adapter and dataset are declared and both private in my Data Provider Time Periods class so how would the event in my Main Window class have any knowledge of them?Obviously my thinking is wrong but just not sure how the process should be working.

If you call the Remove At collection on the Rows property, the deletion won't be communicated back to the database. When you merge datasets, new records in the source dataset are added to the target dataset.That is, it can be in an error state after you finish updating one column but before you get to the next one.To prevent premature constraint violations you can temporarily suspend update constraints.If you intend to update an underlying data source later, you must use the methods on the Data Table.Data Row Collection property when adding or removing rows.

Search for updating database from datagrid:

updating database from datagrid-24updating database from datagrid-64updating database from datagrid-75updating database from datagrid-88

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “updating database from datagrid”