Hi,
My radgridview is dynamically populated and I am trying to delete a row. It deletes it from the grid but not from the database. My code is as follows:
'Save changes
Any help would be appreciated.
My radgridview is dynamically populated and I am trying to delete a row. It deletes it from the grid but not from the database. My code is as follows:
'bsMaintenance is the bindingsource
bsMaintenance.RemoveCurrent()
bsMaintenance.EndEdit()
'Save changes
Dim
myBuilder As SqlCommandBuilder = New SqlCommandBuilder(daDataAdapter)
Dim iResult As Integer
Dim bResult As Boolean = False
bsMaintenance.EndEdit()
myBuilder.GetUpdateCommand()
daDataAdapter.UpdateCommand = myBuilder.GetUpdateCommand()
daDataAdapter.Update(DSData, "TBL_CALL_TYPES")
Any help would be appreciated.