Hi all
I've seen lots of snippets in the Save Method of the BindingNavigator control that contains just:
Validate()
datatable.EndEdit
datatable.Update
In my winforms app, I did a debug on the call to the Validate() and found it fired the validating event of just one control on the form, not all of them.
1. shouldn't it fire the validating events on all controls on the form?
2. how do you get it to fire the validating events on all controls on the form?
2. how to you prevent execution from going to the datatable.EndEdit statement when an error is found in the validating event?
TIA
I've seen lots of snippets in the Save Method of the BindingNavigator control that contains just:
Validate()
datatable.EndEdit
datatable.Update
In my winforms app, I did a debug on the call to the Validate() and found it fired the validating event of just one control on the form, not all of them.
1. shouldn't it fire the validating events on all controls on the form?
2. how do you get it to fire the validating events on all controls on the form?
2. how to you prevent execution from going to the datatable.EndEdit statement when an error is found in the validating event?
TIA