I’m working on an app that has a WebListBox, a WebDatePicker, and several other controls on a container. To avoid having a save button, the container has an Updating boolean property that is set True whenever a control value is changed. The listbox SelectionChanged event fills the DatePicker and other controls from a database. The last line of that event code is “Updating = False”. When I put breakpoints on that line and the DatePicker,DateChanged event (“Updating = True”), I find that the DateChanged event fires after the Listbox.SelectionChanged event has completed. This forces an unwanted updating of the database rewriting the same data.
I tried setting a SkipThis boolean property True in the SelectionChanged code right before updating the DatePicker and conditioning the “Updating = True” statement not to fire when SkipThis = True, but it had no effect. Is this a bug, something I can work around, or something I have to live with?
6 posts - 4 participants