Difference between validating and validated events in vb net
In other environments, the UI developer needs to add some support for displaying the error messages your component generates.There are lots of benefits to turning classes into components by incorporating validation logic into your business logic.That's a term used for code that breaks easily whan anything is changed. For example, once you get into the loop, the only way to get out again is to cancel the program - not a very satisfactory user experience.
However, pressing the Esc key in this situation will revert the initial value of the cell and it will close the editor. The Row Validating event has a slightly different behavior.
Ideally, UI developers just wire your components up to their UIs, and those UIs will do the right thing. NET Framework contains three interfaces you can leverage to have the validation errors generated by logic in your components automatically integrated into an application's UI.
In some environments, the only thing the UI developer needs to do is add a reference to your component.
There is a deep discussion about when, where and how this validation should be done.
Should this validation be done on the client-side or the server-side in a client/side application?
Introduction An important part of any data-driven application is ensuring data validation and handling errors when they occur.