Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
3.67/5 (3 votes)
See more:
Hi
I want to show my data in the form of Tree and some of properties of each node as columns of that node. something like tree with columns. i tried to use c1flexgrid, but the operations like move-up, move-down, promote, demote, adding nodes to other node etc are not straight like a tree-view. so can some one suggest me what control in wpf is available for my requirement.

Thanks & Regards
Easwar.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jun-12 11:28am    
This is a good idea; and I don't know any ready-to-use solution; would be nice to have. Anyway, my 5 for the question.

Also, it would be great to have a virtual tree view. In Delphi, we had the 3rd-party control VirtualTreeView with columns pretty much like you describe, it was extremely good to use (well, with some minor bugs needed work-around).
--SA

1 solution

I am not sure about what you are asking for. I did something similar I think using Infragistics XamDataGrid, and had to do some tricks to try to get the columns lined up. You might try the WPF DataGrid, and in the first column (one with a spacer, a button, and the first text) just add some space before the expand button dependent on the level. Visibility could be controled by an IsVisible property, which hides a row if not IsVisible. It is a lot of manual work, but WPF does make it easier than would be otherwise.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900