T
thanneman
Hello all,
First off all, I appollogize for my englisch.
I have a problem.
I have a table in my sql database with 2 fields.
Field 1 is an ID, and Field 2 contains the complete file locations.
What I would like to do is create a treeview from this table.
For example:
Table:
Id FileLocation
1 D:\Demo\001\01\00001.tiff
2 D:\Demo\001\01\00002.tiff
3 D:\Demo\002\01\00001.tiff
4 D:\Demo\002\01\00002.tiff
5 D:\Demo\002\01\1\00001.tiff
6 D:\Demo\002\02\00001.tiff
7 D:\Demo\002\02\00002.tiff
8 D:\Demo\003\01\00001.tiff
9 D:\Demo\003\01\00002.tiff
The treeview would look something like this:
- D:\
- Demo
- 001
- 01
- 0001.tiff
- 0002.tiff
- 002
- 01
- 0001.tiff
- 0002.tiff
- 1
- 0003.tiff
- 002
- 02
- 0001.tiff
- 0002.tiff
- 003
- 01
- 0001.tiff
- 0002.tiff
As you can see I don't know how deep the tree can be.
What I do know is that they all have the same root level : D:\Demo\
I hope someone can help me with this problem.
I would appreciate any help.
Thank you,
Nathan
First off all, I appollogize for my englisch.
I have a problem.
I have a table in my sql database with 2 fields.
Field 1 is an ID, and Field 2 contains the complete file locations.
What I would like to do is create a treeview from this table.
For example:
Table:
Id FileLocation
1 D:\Demo\001\01\00001.tiff
2 D:\Demo\001\01\00002.tiff
3 D:\Demo\002\01\00001.tiff
4 D:\Demo\002\01\00002.tiff
5 D:\Demo\002\01\1\00001.tiff
6 D:\Demo\002\02\00001.tiff
7 D:\Demo\002\02\00002.tiff
8 D:\Demo\003\01\00001.tiff
9 D:\Demo\003\01\00002.tiff
The treeview would look something like this:
- D:\
- Demo
- 001
- 01
- 0001.tiff
- 0002.tiff
- 002
- 01
- 0001.tiff
- 0002.tiff
- 1
- 0003.tiff
- 002
- 02
- 0001.tiff
- 0002.tiff
- 003
- 01
- 0001.tiff
- 0002.tiff
As you can see I don't know how deep the tree can be.
What I do know is that they all have the same root level : D:\Demo\
I hope someone can help me with this problem.
I would appreciate any help.
Thank you,
Nathan