F
Frank
I'm supposed to prompt the user to save changes when
switching tabs or closing a form if the user has made any
changes. I'm curious as to a best practice or
recommended solution for checking if changes have
occurred on a form with lots of fields.
Options:
1. I'm currently not performing any databinding, so
DataSet.GetChanges I don't think is for me.
2. I could attach OnChange events to all of my form
fields, but that is a pain with DateTimePicker controls.
3. Check each form field value against the initial value
when exiting.
I'm leaning toward #3. Are there any elegant solutions
I'm not thinking of?
Thanks in advance,
Frank
switching tabs or closing a form if the user has made any
changes. I'm curious as to a best practice or
recommended solution for checking if changes have
occurred on a form with lots of fields.
Options:
1. I'm currently not performing any databinding, so
DataSet.GetChanges I don't think is for me.
2. I could attach OnChange events to all of my form
fields, but that is a pain with DateTimePicker controls.
3. Check each form field value against the initial value
when exiting.
I'm leaning toward #3. Are there any elegant solutions
I'm not thinking of?
Thanks in advance,
Frank