在csdn上了发了次帖子,没人回复,只有自己结贴了。http://bbs.csdn.net/topics/390706314?page=1#post-396723432
|
1 |
//通过选中的节点获取用户ID |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 |
List<string> listUserID = new
List<string>(); private
void GetVDTTreeSelectedUserID(ASPxTreeList parentNode) { string
sUserID = ""; System.Collections.IList Nodes = dttreePubUserInfo.GetSelectedNodes(); for
(int
i = 0; i < Nodes.Count; i++) { sUserID = ((DevExpress.Web.ASPxTreeList.TreeListNode)Nodes[i]).GetValue("UserID").ToString(); listUserID.Add(sUserID); } } |
原文:http://www.cnblogs.com/Serialport/p/AspxTreeList.html