Answer the question
In order to leave comments, you need to log in
DELETE COMMAND concurrency violation?
there was such an error in the form of violation of parallelism DELETE COMMAND when starting the .exe file. appears exactly when I delete the newly added row in the database and I want this action to be saved in the database. but it's worth restarting the program and everything is quietly saved after deletion. When running in VS, no errors pop up. where to dig I do not know. the primary key in the database is available, as written in some topics. Tables[0].AcceptChanges(); I also tried, but it doesn't help.
private void DeleteButton_Click(object sender, EventArgs e)
{
foreach(DataGridViewRow row in dataGridView1.SelectedRows)
{
dataGridView1.Rows.Remove(row);
accountingTableAdapter.Update(база_данныхDataSet.Accounting);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question