This is a follow-up for the closed thread Form control’s Validate method not be called while pasting text on it and leave it
Hi all,
I came across this old thread because I asked myself exactly the same question today:
Why is the validate method not called after entering or changing a value in a non-data-bound control?
Since the old thread doesn’t really provide a solution, I would like to do so now.
The lack of data binding is indeed the cause. This has not been clearly addressed so far. However, data binding is not absolutely necessary, as in certain scenarios, using non-data-bound controls can be the leaner and more stable solution.
Data binding also includes simple display or edit methods at the form’s level without reference to a data source. This is how the validate method is also called.
And using the FormObservable attribute makes such an implementation even more convenient.
Best regards,
Roland