Anesthaesia
Technical User
Hi,
I need to populate a Treeview from a database but am having problems getting my head around it. Any tips would be great... I have no problem getting the data - its only the populating part I am having trouble with.
The data is stored as:
Office
Mgmt
Office\Location
Office\Dept\Accounts
Office\Dept\DTP
Mgmt\Name
And needs to be displayed as:
Office
- Location
- Dept
- Accounts
- DTP
Mgmt
- Name
I have tried a number of things but keep getting varied results with nodes showing up in the wrong location.
I have done a number of searches for examples (Google and this site) but have been unable to find anything helpful.
I need to populate a Treeview from a database but am having problems getting my head around it. Any tips would be great... I have no problem getting the data - its only the populating part I am having trouble with.
The data is stored as:
Office
Mgmt
Office\Location
Office\Dept\Accounts
Office\Dept\DTP
Mgmt\Name
And needs to be displayed as:
Office
- Location
- Dept
- Accounts
- DTP
Mgmt
- Name
I have tried a number of things but keep getting varied results with nodes showing up in the wrong location.
I have done a number of searches for examples (Google and this site) but have been unable to find anything helpful.