This is a migrated thread and some comments may be shown as answers.

[Solved] Win Explorer with TreeView

0 Answers 20 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Naga
Top achievements
Rank 1
Naga asked on 16 Dec 2011, 10:45 PM

Here is the scenario I am trying to solve with tree view. I am trying to display my object graph with Tree view. I can compare my graph with windows explorer with multiple levels of folders, where files may or may not exist under a folder.

I should be able to drag files into various folders. Folders should not be drag gable. Also I should be able to set different CSS to file types and folder types.


Class MyFolder : MyFile

{

     //Children type 1

    List<MyFolder> Folders;

     // Children type 2

    List<MyFile> Files;

}

  

Questions

1)How I can bind 2 different object types(MyFolder,MyFile) as children

2)How do I make Folder objects non drag gable and set only File objects drag gable.

3)I guess if I can do above, I am expecting I can also set CSS separately for MyFolder type and MyFile type objects.

Thank you for your response.

Tags
TreeView
Asked by
Naga
Top achievements
Rank 1
Share this question
or