Hi,
I am using
LLBLGenPro -- 2.6 final Demo version
Visual Studio -- 2005
SqlServer -- 2005
I have a datagridview and binding EntityCollection to this grid using Datasource property of the grid.
Where i am trying to enter the value in a cell, field level validation is getting triggered. And if the entered data is not range or in not proper format, an execption of dataerror is being thrown and setting the error text (IDataErrorInfo implementation).
Now here are my concerns:
1. Exception thrown is from datagrid asking to handle DataError event. --- I do not want to handle this exception in the grid and even do not want to show the exception box to user.
I want to keep the value which user has entered and show him the error icon. So that he can correct the value.
a. Has LLBLGen already handled this? If yes then how do I make it work?
- Error icon (IDataErrorInfo implemetation) is only shown for string fields. For datetime, integer and long fields, exception is thrown by the datagrid and i am not able to move out of the field until the value is corrected.
-- Is it possible not to show the exception box? Just show the icon. Once this happens then i am ok if user is not allowed to move out of this cell until he has corrected the data.
Please take a note that I have not made any change in the config file and also did not enable "SD.Tasks.Generic.ValidatorClassesGenerator" task while generating the code.
Thanks and Regards,
Prafull