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 .
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 .