I have a datagridview whose source is a datatable. There are orders and food names columns. I insert new values into the this datagridview and delete from the table. when I select one row and delete it, selected color moves to the top, and if I want to delete one more order for same food, I have to reclick it each time. How can I solve this problem? by the way I update the datagridview after inserting or deleting from sql, like this;
ds.Clear();
da.Fill(ds);
dataGridView2.DataSource = ds.Tables[0];
da and ds is defined like this;
da = new SqlDataAdapter(sqlcommand);
ds = new DataSet();