deadlock error when try to update from gridview
问题 Transaction (Process ID 588) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. i get that error when i try to update data from datagridview how can i solve it or what is the problem with my update code and thank you , private void Button2_Click(object sender, EventArgs e) { using (SqlConnection con = new SqlConnection("***")) { con.Open(); for (int i = 0; i < dataGridView1.Rows.Count - 1; i++) { // INSERT command: using