I'm trying to delete a row from a datagrid. That's not too hard. I use:
If grdDataGrid.Row >= 0 Then
Dim r As Integer = grdDataGrid.RowSel - 1 '.Rows(grdDataGrid.Row).DataIndex
If r >= 0 Then
The row disappears. But, if I close the form and reopen it, the row is still there. It is not deleted from the database. So I try to update the data adapter with:
But I get the same result.
How do I update the database?