Hello all, i am having a problem deleting a record from the database, i can get it to delete from the dataset with this code.
On my form i have about 30 fields bound to datafields in a database.
It is deleted from the dataset, when i am navigating with my form the data is deleted, but if i look in the databse it is still there. What code would i need to add to "Update" or "Refresh" my database with the new data?
this is in .net 2005 thanks in advance
Code:
Try DsAutoTech.ROMaster.Rows(Me.BindingContext(ROMasterBindingSource).Position).Delete() DsAutoTech.AcceptChanges() Catch ex As Exception MsgBox(ex.Message) End Try
It is deleted from the dataset, when i am navigating with my form the data is deleted, but if i look in the databse it is still there. What code would i need to add to "Update" or "Refresh" my database with the new data?
this is in .net 2005 thanks in advance
Comment