[RESOLVED] Data Tree View help!
This is somewhat of a multi part question, let me start off by explaining what I'm trying to do. I have an organized folder system with data files in them. Each folder has a set structure to their naming, and can contain sub folders and files. It will be a jagged directory system. I'm trying to import their structure into a TreeView.
I have the workings of a recursive system that adds all files and folders into a ViewTree, however they aren't organized by parent/child. So I get this...
-C:\Temp
-C:\Temp\Data
-C:\Temp\file1.txt
-C:\Temp\file2.txt
-C:\Temp\Data\file3.txt
-C:\Temp\Data\file4.txt
etc........
How would I go about parsing the directory paths, and include them into a parent/child relationship... looking like this
+Temp
--file1.txt
--file2.txt
-+Data
---file3.txt
---file4.txt
Also I when the line item is selected, I need to know which file is selected so I can use it's full path to call up data (using an API) based upon the it's full root path.