I have received alot of help from this site on this issue. I have solved a lot of my problems and I am down to one final one. I have a parent table with two child tables. the parent id is in each of the child tables. On save, the id is flowed down to the child tables with no problems. The problem is when i save, the parent table is inserted into the sql server db, but the child tables are not, they remain as -1. Not sure why they arent saving. Here is my code:
VB.NET:
Private Sub FlightcardBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs) Handles FlightcardBindingNavigatorSaveItem.Click
Me.Validate()
Me.FlightcardBindingSource.EndEdit()
Me.System_setupBindingSource.EndEdit()
Me.Aircraft_conditionBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.FlightTestApp2DataSet)
End Sub
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Me.SpeedTableAdapter.Fill(Me.FlightTestApp2DataSet.speed)
Me.AltitudeTableAdapter.Fill(Me.FlightTestApp2DataSet.altitude)
Me.AntennatiltTableAdapter.Fill(Me.FlightTestApp2DataSet.antennatilt)
Me.AntennapositionTableAdapter.Fill(Me.FlightTestApp2DataSet.antennaposition)
Me.ModetypeTableAdapter.Fill(Me.FlightTestApp2DataSet.modetype)
Me.Aircraft_conditionTableAdapter.Fill(Me.FlightTestApp2DataSet.aircraft_condition)
Me.System_setupTableAdapter.Fill(Me.FlightTestApp2DataSet.system_setup)
Me.FlightcardTableAdapter.Fill(Me.FlightTestApp2DataSet.flightcard)
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Me.System_setupBindingSource.AddNew()
Me.Aircraft_conditionBindingSource.AddNew()
Me.FlightcardBindingSource.EndEdit()
End Sub