The database structure is:
Id Name ParentId
1 File NULL
2 Open 1
3 Save 1
4 Exit 1
5 Edit NULL
6 Cut 5
7 Copy 5
I want to display the above data in tree view using VB.Net like:
File
----- Open
----- Save
----- Exit
Edit
----- Cut
----- Copy
I am using the database PostgreSQL.
The query function is kinda pseudo-code, but I think you get the picture.