Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
object data source validation optionals
posted

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

 

Parents
No Data
Reply
  • 469350
    Offline posted

    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.

Children