AspxTreeList获取选中项的值

在csdn上了发了次帖子,没人回复,只有自己结贴了。http://bbs.csdn.net/topics/390706314?page=1#post-396723432

//通过选中的节点获取用户ID
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);

        }


    }
原文地址:https://www.cnblogs.com/Serialport/p/AspxTreeList.html