ComponentOne True DataControl 8.0
True DataControl Error Handling and Bound Controls

Errors detected by True DataControl in field and record validation are handled by the True DataControl as described above, with Error event and standard error message. However, some bound controls still consider them as error conditions and may try to apply their own error handling, after one of True DataControl's. This occurs, for example, in the Microsoft DataGrid control. If you try to enter invalid data in a cell, you will see the True DataControl error message followed by an error message from the DataGrid control. This happens because data bound controls like DataGrid are not designed for data sources that can handle errors, they always try to handle errors themselves.

If you encounter such situation, it can be dealt with quite easily: use the bound control’s Error event to cancel the redundant error messages.

This problem will not occur with the ComponentOne True DBGrid control, which is aware of the fact that an error is handled by True DataControl, and won't try to handle such error again. Yet another good reason to make ComponentOne True DBGrid your grid of choice!

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback