data changed on form

  • Thread starter Thread starter parez
  • Start date Start date
P

parez

Is there a built in way of knowing if the content of the fields on a
form has changed?
Is there any event that gives you before and after value of the text?

TIA
 
Hi,

There is no easy way to find out of control X has changed its content. If
you databind all the controls to properties on a business object, you can
have a "Dirty" property that all the other properties set to true and is only
set to false when you save the object or otherwise determine its state should
not be "Dirty". An alternativ to having a Dirty property is passing having
the business object implement INotifyPropertyChanged and pass PropertyChanged
event when a property changes. This is sometimes necessary to force the UI
to catch a change in the business object.
 
Back
Top