Deleting from a grid not working

DerekC

Member
Joined
May 5, 2009
Messages
20
Programming Experience
5-10
Hi,
I have a grid which is dynamically populated. I am trying to delete a row and save but the changes aren't actually saved to the database.

My code is as follows:

bsMaintenance.RemoveCurrent()
bsMaintenance.EndEdit()

myBuilder.GetUpdateCommand()

daDataAdapter.UpdateCommand = myBuilder.GetUpdateCommand()

daDataAdapter.AcceptChangesDuringUpdate = True
daDataAdapter.Update(DSData, "TBL_CALL_TYPES")


Any help would be appreciated.
 
Back
Top