Lesson 9: Databinding Data to User Interface Controls
I'm about to loose my mind...I've watched the video and created a test application by following the steps in the video and have the following code generated by draging the Registration table of the dataset onto the VB Form like they do in the video and also added a message box to show that the row actually got updated. Because I'm using details view I always get a 1 saying that a row was updated but when I restart the application there is nothing in the database. What am I doing wrong? Please help!!!!!!!!!
PrivateSub Form2_Load(ByVal senderAs System.Object,ByVal eAs System.EventArgs)HandlesMyBase.Load'TODO: This line of code loads data into the 'MembershipDataSet.Registration' table. You can move, or remove it, as needed.Me.RegistrationTableAdapter.Fill(Me.MembershipDataSet.Registration)EndSubPrivateSub RegistrationBindingNavigatorSaveItem_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles RegistrationBindingNavigatorSaveItem.ClickMe.Validate()Me.RegistrationBindingSource.EndEdit()MsgBox(
Me.RegistrationTableAdapter.Update(Me.MembershipDataSet.Registration))EndSub
