I am creating my first app in vb.net.
I have created a data source, selected "Details" and dropped the fields onto a Windows form.
Via the navigator, I go backwards, forwards, edit, etc just fine.
Question:
I Edit a record and click the Save button on the Binding Navigator. How can I find out which record was edited and saved (ie get the Primary Key for the record being saved)?
Currrently, all I have is the system generated code which looks like this:
Private Sub Dummy1BindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Dummy1BindingNavigatorSaveItem.Click
Me.Validate()
Me.Dummy1BindingSource.EndEdit()
Me.TableAdapterManager1.UpdateAll(Me.DataSet1)
End Sub
Thanks in advance for your help.
I have created a data source, selected "Details" and dropped the fields onto a Windows form.
Via the navigator, I go backwards, forwards, edit, etc just fine.
Question:
I Edit a record and click the Save button on the Binding Navigator. How can I find out which record was edited and saved (ie get the Primary Key for the record being saved)?
Currrently, all I have is the system generated code which looks like this:
Private Sub Dummy1BindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Dummy1BindingNavigatorSaveItem.Click
Me.Validate()
Me.Dummy1BindingSource.EndEdit()
Me.TableAdapterManager1.UpdateAll(Me.DataSet1)
End Sub
Thanks in advance for your help.