Im doing my validation on rowchanged events in the dataset, but sometimes the database passes back an exception.
When the database passes back an exception, it sets a Row Error. The only way I can see to clear the Row Error is to run RowWithErrors.ClearErrors(), but this also clears out all other validation errors on the Columns.
The only workaround I can see is to go through the columns and copy their errors, run RowWithErrors.ClearErrors(), then run through the columns again and reassign their errors, which seems a little akward.
Im sure I could come up with a procedure that handles this generically, but is there something Im missing thats a little more straight forward?
When the database passes back an exception, it sets a Row Error. The only way I can see to clear the Row Error is to run RowWithErrors.ClearErrors(), but this also clears out all other validation errors on the Columns.
The only workaround I can see is to go through the columns and copy their errors, run RowWithErrors.ClearErrors(), then run through the columns again and reassign their errors, which seems a little akward.
Im sure I could come up with a procedure that handles this generically, but is there something Im missing thats a little more straight forward?