@ wasqas..waqas bro could you tell me why i get foreign kkey constraint error if i use this code under a button
Me.Validate()
Me.CustomerBindingSource.EndEdit()
Me.CustomerTableAdapter.Update(NewBookingDataSet.Customer)
Me.BookingBindingSource.EndEdit()
Me.BookingTableAdapter.Update(NewBookingDataSet.Booking)
same code works perfectly fine under binding navigator. i cant understand this problem.i use the above code to save the records for booking and customer..
foreign key constraint error is because your are deleting a record which is linked to you other table as a foreign key.