There is a DataGridView which is bounded to the Northwind database.
I use the following procedure to save all changes that are made to DataSet, but it doesn't save
new rows.
| PrivateSubButton3_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesbtnUpdate.Click |
| Try |
| IfmyDataSet11.HasChangesThen |
| Me.BindingContext(myDataSet11,"Employees").EndCurrentEdit() |
| SqlDataAdapter1.Update(myDataSet11) |
| myDataSet11.AcceptChanges() |
| EndIf |
| CatcherrObjAsException |
| MsgBox(errObj.Message.ToString()) |
| myDataSet11.RejectChanges() |
| EndTry |
| EndSub |