Thanks for the link Andrés. However, keystroke validation presents possible new issues and I wanted to avoid that at present. Fortunately after a bit of research I found another simple solution, and that is to call the form's Validate method just prior to calling the BO's IsDirth property. So this is my form's IsDirty property now:
Public ReadOnly Property IsDirty() As BooleanPlease let me know if anyone is aware of a problem with this approach, otherwise my problem is solved.
If you are using .Net 2.0 databinding infrastructure, you can change the "Data Source Update Mode" property to "OnPropertyChanged" for every control on your form (databinding settings for every control). The default value "OnValidation" sends the changes to the datasource when you tab off the control. With "OnPropertyChanged" selected the datasource is updated as you type. This way your object will be always updated with the data shown in your form.
Emilio.
Copyright (c) Marimer LLC