Having a regular Form, with a regular DataGrid and with a
regular settled DataSet that points to a regular database
thru a OleDbAdapter
it encounters to a problem of deleting a row simple by
pressing a delete cause it is possible on a editable
DataGrid.
but behind the datagrid it doesn't really deletes a row
cause DataAdapter ( I suppose this is in My case
OleDbAdapter1) doesn't call DeleteCommand.
I simple stock when I try to use DeleteComand.
DsRW1.Table_Dokumenta.Rows
(DataGrid1.CurrentRowIndex).Delete()
DsRW1.Table_Dokumenta.AcceptChanges()
' DsRW1.Dokumenta.Rows.Remove(R)
OleDbDataAdapter1.Update(DsDokumentaRW1)
OleDbDataAdapter1.Fill(DsDokumentaRW1)
still nothing.
Also when Adapter properties DeleteCommand,
UpdateCommand may influence here but I don't see how.
How to solve problem of deleting a row?
Thanks