0
I found the problem but i dont know how to fix this.
dataGridView2.CurrentCell = this.dataGridView2[0, 0];
dataGridView2.CurrentCell.Value = richTextBox1.Text;
To update the dataset and datagrid, now the problem is becuase i dont click the next line in the datagrid the data doesnt get commited or something (altough the dataset does get changed) when updating to try and save the changes in the database nothing happens.
If i unhide the datagrid and set the text in richtextbox hit save, click the second line in the datagrid and hit save again the data does get commited.
So how would i simulate clicking the next line or how do i properly set the text in the datagrid or dataset so that it does update.
If i use dataset.getxml i can see that the dataset is update regardless if i click the next line but it doesnt update the database.
Thanks.