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

TreeView data load with separator character

0 Answers 108 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Manny Khurana
Top achievements
Rank 1
Manny Khurana asked on 07 Sep 2009, 04:53 AM
I have a database that returns values in the following format

Electronics | Television | HDTV | Samsung
Electronics | Music | MP3 player | Ipod
Electronics | Music | MP3 player | Zune

etc etc

I would like to represent this as a tree structure

Electronics
         -  Television
            --       HDTV  
                      --- Samsung
         - Music
            --  MP3 Player
                    --- Ipod
                    --- Zune

I know the separator will be the '|' character.  Is there a way I can populate the TreeView control directly by reading the above string /s .

No answers yet. Maybe you can help?

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