I want to save my dataGridView when another row is clicked but the problem is that because the row is changed the data gets saved in the wrong row. Please help.