I have a dataset with 2 tables... A Child relation between both, with
cascase update.

After using the getchange on a temporary dataset and using both
dataadapters update method, i don't know if/when to use the merge method
on the main dataset so that the updated returned values (Namely
Identities returned but the sql server) will be displayed on the form.
As it is right now, I use the values from the temporary dataset, but I
am sure I am missing something.

Here is my code...

Me.BindingContext(Me.objdsOrders.Orders).EndCurrentEdit()

Me.BindingContext(Me.objdsOrders.OrdersDetails).EndCurrentEdit()

Dim Changes As dsOrders = Me.objdsOrders.GetChanges


If Not Changes Is Nothing Then

daOrders.Update(Changes.Orders)


daOrdersDetails.Update(Changes.OrdersDetails)

Me.objdsOrders.AcceptChanges()



Me.ID = Changes.Orders.Rows(0).Item("ORD_ID")
Me.Text = "Order # " & Me.ID

Me.objdsOrders.EnforceConstraints = True


Also, the only way i figured out to allow the user to create children in
the grid before saving is to turn off constraints on new order records.
Is that a proper way to do this ?

Thanks