Any easy way to Clear a row error, but leave the Column Errors?

Denaes

Well-known member
Joined
Jun 10, 2003
Messages
956
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?
 
Back
Top