G
Guest
I have a question about validating user input, which the user can enter in a DataGrid. I use the rowchanging event of the DataTable to which the DataGrid is bound. In this rowchanging event-handler, I check the column data of the row, and if not correct, my own exception is thrown
I’m having problems handling this exception, when not handled in my code, the following error message occurs
Error when committing the row to the original data store
<My own text, explaining the error message, in Dutch
Do you want to correct the value
Yes / No button
After pressing Yes or No (does not matter which of the two), al the edits of the (validated) row have been rolled back (like a CancelEdit) ! (Stefano Toniolo posted a question describing this same problem in microsoft.public.dotnet.framework)
So, my question is twofold
First, why and where are the edits rolled back, and how can I make sure this does not occur
Second, I want to handle the exception in my own code, where and how can I, and where in the .NET code is the English text added to my error text ? Does the datagrid do this
Thanks in advanc
M. Lein
I’m having problems handling this exception, when not handled in my code, the following error message occurs
Error when committing the row to the original data store
<My own text, explaining the error message, in Dutch
Do you want to correct the value
Yes / No button
After pressing Yes or No (does not matter which of the two), al the edits of the (validated) row have been rolled back (like a CancelEdit) ! (Stefano Toniolo posted a question describing this same problem in microsoft.public.dotnet.framework)
So, my question is twofold
First, why and where are the edits rolled back, and how can I make sure this does not occur
Second, I want to handle the exception in my own code, where and how can I, and where in the .NET code is the English text added to my error text ? Does the datagrid do this
Thanks in advanc
M. Lein