It is necessary to realize by pressing the delete button, selected in the DGV, records from the database, preferably the syntax.
I tried this:
if (tovarDataGridView.CurrentRow != null) { tovarBindingSource.RemoveCurrent(); tovarBindingSource.EndEdit(); tovarTableAdapter.Update(this.optDBData.tovar); this.tovarTableAdapter.Fill(this.optDBData.tovar); } Error: Update element requires a valid DeleteCommand when transferring a DataRow collection with deleted rows.
It is necessary to delete the record selected in DGV even if it is just a cell and not the whole line!