I have a problem with a DataGrid, when i insert a new line by write a character in the last empty row and if i keep the cursor in the cell i started editing and call the Clear Method of the DataTable i get an error, that i don't know how that handle.
I know why this happen, when i insert a row i don't move the cursor to another row the row isn't updated, so if i am in the 3rd row and call the Clear Method the CurrencyManager kept a reference to the 3rd row and at this point it does not exist and the Commit method of the DataGridColumnStyle is called and i get an error that says that i don't have reference to an object.
how can i solve this problem?
If there is something that's not clear please let me know it.
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement