Just4fun Posted January 26, 2010 Share Posted January 26, 2010 I have racked my little brain trying to figure out how to create a treeview with dynamic elements. Let me further explain.I have a desire to have a treeview control w/ checkboxes, that is populated and filled in automagicly. It should do so as follows:[section_name1] Label="Label to show on leaf" Description="Some fancy text to explain what this 'item' is" Command="some/command/to/execute" Group="SOFTWARE|Security|Tools" [section_name2] Label="Label to show on leaf" Description="Some fancy text to explain what this 'item' is" Command="some/command/to/execute" Group="SOFTWARE|PRODUCTIVITY|OFFICE SUITES" [section_name3] Label="Label to show on leaf" Description="Some fancy text to explain what this 'item' is" Command="some/command/to/execute" Group="SOFTWARE|Security|ANTI-VIRUS"My Goal is to read the Group lines and create a treeview item or "leaf" with the full structure, and not repeat an existing node if it has already been added. Giving the above examples reading the Group elements I would hope to end up with a treeview looking like the following:SOFTWARE+ |-Security + | |-Tools+ | |-section_name1 | |-ANTI-VIRUS+ | |-section_name3 | |-PRODUCTIVITY+ | |-OFFICE SUITES+ | |-section_name2I am sure I am not the only person out here that would find this useful, and I am sure that someone has a way of doing this already, but I just am not able to figure it out my self. Anyone have any ideas?Thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now