1) Keep an "associated" Array of Booleans
2) After checking a cell to True (Click-Event?), zero out the whole array (API-Call?), set the corresponding Array-Member to True
3) Run through the array and assign the boolean-value to the corresponding Checkbox
Yeah, probably overkill.
I'm sure there are easier ways
EDIT
1) No array neccessary
2) After checking a cell to True (Click-Event?), Run through your column setting all Checkboxes to False, SKIPPING the one cell you clicked on
For both Approaches: No Idea if setting the Checkbox through code fires the Click-Event again.
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
1) Keep an "associated" Array of Booleans
2) After checking a cell to True (Click-Event?), zero out the whole array (API-Call?), set the corresponding Array-Member to True
3) Run through the array and assign the boolean-value to the corresponding Checkbox
Yeah, probably overkill.
I'm sure there are easier ways
EDIT
1) No array neccessary
2) After checking a cell to True (Click-Event?), Run through your column setting all Checkboxes to False, SKIPPING the one cell you clicked on
For both Approaches: No Idea if setting the Checkbox through code fires the Click-Event again.