Hi I'm haveing some trouble with my VB.net coursework for college.
I can get every thing working exept for my delete button i keep getting an error every time i click it.
the comment is the error and it is next to the line that visual studios highlights
i need this desperatly because my coursework has to be in after christmas
any help is apreciated
I can get every thing working exept for my delete button i keep getting an error every time i click it.
VB.NET:
Dim row As Integer
row = LoginBindingSource.Position
LoginDataSet.login.Rows(row).Delete()
Me.LoginBindingSource.EndEdit()
Me.LoginTableAdapter.Update(Me.LoginDataSet.login) 'Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.
Me.LoginDataSet.AcceptChanges()
the comment is the error and it is next to the line that visual studios highlights
i need this desperatly because my coursework has to be in after christmas
any help is apreciated