Hi all
I am using object model as datasource, and I am currently implemented IDataErrorInfo in the model to provide grid validation, but I don't like this. I want to keep my model as pure data model as possible without any logic (validation is type of business logic).
I am looking for other validation optionals.
BR
Bryan
Hi Bryan,
You could do your validation in the grid. There are a lot of events you could use, depending on your needs.
You could use BeforeExitEditMode, BeforeCellUpdate, or BeforeRowUpdate, for example.
Another option would be to use the UltraValidator component.
Personally, I think it makes sense to do validation on the data source itself in many cases. The advantage of doing it that way is that if your UI changes, your validation does not have to change.
Mike Saltzman"] Personally, I think it makes sense to do validation on the data source itself in many cases. The advantage of doing it that way is that if your UI changes, your validation does not have to change.
Thanks Mike, do you mean you prefer to implment IDataErrorInfo in the object model?