以数据表绘制TreeView,如何做到?
数据表有Group、Team、UName3个字段
字段 Group Team UName
Group1 Team11 UName111
Group1 Team11 UName112
Group1 Team12 UName121
Group1 Team12 UName122
Group2 Team21 UName211
Group2 Team21 UName212
Group2 Team22 UName221
Group2 Team22 UName222
如何绘制一个TreeView,按照上述3个字段分级
□Group1
│├─Team11
││ ├─UName111
││ └─UName112
│└─Team12
│ ├─UName121
│ └─UName122
□Group2
├─Team21
│ ├─UName211
│ └─UName212
└─Team22
├─UName221
└─UName222
请高手提供思路或直接代码,谢谢!
------解决方案--------------------
Treeview绑定下数据源,参考
http://www.cnblogs.com/duhongyu216/articles/1702591.html