首页 > Web开发 > 详细

AspxTreeList获取选中项的值

时间:2014-02-12 20:05:10      阅读:455      评论:0      收藏:0      [点我收藏+]

在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);
 
        }
 
 
    }

 

AspxTreeList获取选中项的值

原文:http://www.cnblogs.com/Serialport/p/AspxTreeList.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!