Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I need to display a grid like checkbox,Directory(root) or Folder(parent) or File(child) Name(treeview),size in wpf application.
now i am getting like combined checkbox with treeview but i need to separate from treeview.

Gird exactly looking like this,

checkboxs/ Directory(root) or Folder(parent) or File(child) Name(treeview)/ Size


please help me out with this.
Thanks in advance.
Posted
Updated 9-Apr-13 0:01am
v3
Comments
Sergey Alexandrovich Kryukov 9-Apr-13 1:39am    
I'm not sure that I understand what it should be, exactly. If you want some combination of the tree view and a detail list view/grid, this is a very important question: would be very good to have, but hard to find or create...
—SA
Member 7686563 9-Apr-13 6:28am    
chkbox - root size
chkbox - parent size
chkbox - child size

like this format
thanks
Sergey Alexandrovich Kryukov 9-Apr-13 10:44am    
This is easy, but ugly. If you really want to have both grid/list view features and tree view features, you would require something which is more difficult:


[x] root | size | ...
[x] parent | size | ...
[ ] child | size | ...


or


[x] root | size | ...
[x] parent | size | ...
[ ] child | size | ...



Do you see the point? With correctly aligned columns, optional lines, including parent-child relation lines (not shown). I think this is pretty difficult to implement; and I don't know any available open-source component...

If you want, I can easily tell you how to make a simple, non-aligned variant, but I think you know it yourself...
Of course, a fully-fledged control can be built from scratch (based on Control class or something close) using fully-custom graphic rendering, but it would be a really big work: tree view lines and scrolling responding to expanding/collapsing of the nodes would make pretty sophisticated or complex algorithms. If you are interested, I could share some ideas, but I'm not going to develop anything like that in near future, and not only because I don't have enough time, but by some other reasons: I would like even more advanced control, otherwise I would not bother...

—SA
Member 7686563 10-Apr-13 0:55am    
thanks for explained detailed. please guide me how to implement that 2nd structure.
thanks.
Member 7686563 10-Apr-13 1:00am    
Actually I am trying with C# - WPF , so I can implement this with your guidance.
thanks.

1 solution

I found this CodeProject articles:
TreeListView[^].

This work not very strong, but it looks like what you need; it may give you the ideas.

—SA
 
Share this answer
 
v2
Comments
Member 7686563 22-Apr-13 3:03am    
I have got exact view but the only problem is, while expanding toggle button root,parent and child showing in same alignments, so difficult to differentiate.
showing like this:
[]root
[]parent
[]child
instead of,
[]root
parent
child

please give me idea for this.
Thanks,

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