none
DataRow EndEdit errors RRS feed

  • Question

  • I have a form with some manually bound controls (didn't use the designer wizard.) If I insert a string that is too long for the destination field and call EndEdit on the row an exception is thrown. I can't find any dataobjects where I can discover the error. HasErrors on all objects returns false. I'd like to be able to flag the field or change focus top the field for the users but the only place the column is documented is in the error string. Another issue is that only one error is reported - there could be other columns with the same problem.

    Other than writing a validation event for every control is there a way to discover errors like 'too long' or wrong data type?
    Wednesday, December 2, 2009 5:00 PM

Answers

All replies