Im totally newbie to VB.

here is my coding for a simple database (service-based database)

I created 4 buttons, ADDNEW, REMOVE, EDIT, SAVE. 3 buttons are ok. working fine. SAVE, REMOVE and ADDNEW. I could not coding to a EDIT or UPDATE button.

Please anyone take a look in my coding and help me to create a EDIT or UPDATE button.... please frnz help to solve this... this is my midterm assignment......

Public Class Form1



Private Sub NewbieTBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewbieTBindingNavigatorSaveItem.Click

Me.Validate()

Me.NewbieTBindingSource.EndEdit()

Me.TableAdapterManager.UpdateAll(Me.NewbieDataSet)



End Sub



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'TODO: This line of code loads data into the 'NewbieDataSet.NewbieT' table. You can move, or remove it, as needed.

Me.NewbieTTableAdapter.Fill(Me.NewbieDataSet.NewbieT)



End Sub



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Me.NewbieTBindingSource.AddNew()

NameTextBox.Enabled = True

End Sub



Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

Me.NewbieTBindingSource.RemoveCurrent()

End Sub



Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Me.Validate()

Me.NewbieTBindingSource.EndEdit()

Me.TableAdapterManager.UpdateAll(Me.NewbieDataSet)

End Sub





Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

' Here HOW to write the coding for EDIT or UPDATE button???? plllzzzz help me...............

End Sub

End Class