I have a TreeView on my form but I’d like it to always be fully expanded, even the child nodes.
Is there a way?
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.
Do you want it to initially display expanded? If so, then call the
ExpandAllmethod on the root node after you have added all of the tree nodes.If you want it to display expanded and not allow the user to collapse it, then you need to handle the
BeforeCollapsedevent and cancel it. (Sete.Cancel = true;).