I have a treeview and Checkbox is set true. What I want is that only one checkbox is selected in the whole treeview. How can I do that?
FYI: the treeview is in three level depth.
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.
The simplest way to do that is to set an even handler to your tree view’s AfterCheck event. In this handler you can uncheck all the nodes but the one which just became checked:
Should work (didn’t try)