How do I display non-normalized data in a hierarchical structure?

前端 未结 3 1029
盖世英雄少女心
盖世英雄少女心 2021-01-16 13:01

My issue is that I want to display data in a hierarchal structure as so:

  • Democrat
    • County Clerk
      • Candidate 1
      • Candidate 2
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-16 13:33

    A TreeView control would give you the format you want. However populating it from the database takes some effort. There is an article here about populating asp.net TreeViews from a database: http://www.codeproject.com/KB/tree/TreeViewWithDatabase.aspx

提交回复
热议问题