I have got the
( BindingNavigatorAddNewItem ) button on the binding navigator bar I need the code to make this run the
insertcommand from my DatasetTableadapter and insert the selected Prikey (number row selected) in Datagridview
If I click on it now it just inserts a blank line what I need it to do is insert from Table 1 to Table 2 like it does when I run the
query in Query Builder .
How do I code this to run from
( BindingNavigatorAddNewItem ) button .
The code below runs delete ok with no problems
Private Sub BindingNavigatorDeleteItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem1.Click
If (Me.Validate() And Not (COURSEBindingSource Is Nothing)) Then
If (MsgBox("Delete?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes) Then
COURSEBindingSource.RemoveCurrent()
COURSEBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.CourseDataSet1)
Thanks David