I’ve tried looking at the properties for the asp.net checkboxlist on msdn and searching google and I can’t seem to find a way of setting the checkboxes to unchecked as default. Am I missing a glaringly obvious solution?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default a
ListItemin theCheckBoxListshould not be checked. If you have theSelectedproperty set totruethen it would be checked:By default it is false and this should suffice. If you need to clear all the checked items on demand you can use the ClearSelection method:
checkboxlist.ClearSelection().