Hi,
I have a gallery which contains a checkbox control, which defaults to a value in a collection. The user can check/uncheck the box and hit 'Save' to parse the changes to the collection. Note: The gallery is hidden until the user hits a 'Settings' button.

The issue is that if the user changes the box from Checked to Unchecked the box (or vice-versa) and selects 'Cancel' or 'Close', it remembers the last state of the checkbox, regardless of what the collection value is. Selecting 'Cancel' or 'Close" simply sets the gallery to hidden.
I would like to reset the gallery checkboxes to their original state but not sure how. Any help would be grateful received.
Thanks,
Lee