Link to home
Start Free TrialLog in
Avatar of steve_mick972
steve_mick972

asked on

CheckBoxList like RadioButtonList

I want to use a checkbox list and make it function like a radiobutton list (ie - make only one selection possible) instead of multiple selections.

Would like to have the look and feel of a checkbox list with a radiobuttonlist functionality.

Any thoughts.

Thanks.
SOLUTION
Avatar of dharmesh_amity
dharmesh_amity

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcgants
mcgants

oh, by the way, that code will cycle through all controls on the screen, so if you want to have other check boxes that aren't in your 'Check Box List', then amend the function line:

...  If myCheckBox.Checked = True And myCheckBox.ID <> Box.ID Then ...

to include other 'ids' that you don't want to include. e.g.

...  If myCheckBox.Checked = True And myCheckBox.ID <> Box.ID And myCheckBox.ID <> chkBlah.ID Then ...

cheers,
mcg