DevExpress.XtraTreeList.TreeList 控件如何找到当前被选中的节点
2013-04-01 14:19
686 查看
原文出自:http://blog.csdn.net/nash603/article/details/5923727
问题: 不知道DevExpress.XtraTreeList.TreeList 控件的哪个成员函数能够让我们找到当前树形结构中被选中的节点
解决方案: string tmp = treeL.FocusedNode.GetDisplayText(this.treeListColumnIndex);
一开始以为肯定是DevExpress.XtraTreeList.TreeList的成员函数里面以“get...”“selected”开头的函数,一直找不到。
后来google之,在国外论坛发现以下一段评论:
The following help topic has an example of how to append nodes at run time. Note that the number and order of objects in the array for the first parameter of the AppendNode method must match the number and order of tree list columns that are in the tree list.
http://www.devexpress.com/Help/Content.aspx?help=XtraTreeList&document=CustomDocument5559.htm
You may use the GetValue or GetDisplayText method of a TreeListNode to get data from the selected node. The FocusedNode property of the tree list will access the currently focused TreeListNode.
http://www.devexpress.com/Help/Content.aspx?help=XtraTreeList&document=CustomDocument5639.htm
终于知道原来是FocusedNode 这个函数,晕死,汗
问题: 不知道DevExpress.XtraTreeList.TreeList 控件的哪个成员函数能够让我们找到当前树形结构中被选中的节点
解决方案: string tmp = treeL.FocusedNode.GetDisplayText(this.treeListColumnIndex);
一开始以为肯定是DevExpress.XtraTreeList.TreeList的成员函数里面以“get...”“selected”开头的函数,一直找不到。
后来google之,在国外论坛发现以下一段评论:
The following help topic has an example of how to append nodes at run time. Note that the number and order of objects in the array for the first parameter of the AppendNode method must match the number and order of tree list columns that are in the tree list.
http://www.devexpress.com/Help/Content.aspx?help=XtraTreeList&document=CustomDocument5559.htm
You may use the GetValue or GetDisplayText method of a TreeListNode to get data from the selected node. The FocusedNode property of the tree list will access the currently focused TreeListNode.
http://www.devexpress.com/Help/Content.aspx?help=XtraTreeList&document=CustomDocument5639.htm
终于知道原来是FocusedNode 这个函数,晕死,汗
相关文章推荐
- DevExpress.XtraTreeList.TreeList 控件如何找到当前被选中的节点
- DevExpress.XtraTreeList.TreeList (树控件使用说明)
- DevExpress控件XtraTreeList的使用心得
- DevExpress控件之XtraTreeList
- c# DevExpress.XtraTreeList 树形节点的上下移动
- Devexpress TreeList 展开和折叠当前选中节点
- 详解在DevExpress程序中使用TreeList控件以及节点查询的处理
- DevExpree XtraTreeList 如何去掉/隐藏某些节点前的图片
- (DevExpress2011控件教程)ASPxTreeList 范例1 :如何绑定数据到ASPxTreeList
- DevExpress.XtraTreeList.TreeList控件:绑定数据源的例子
- DevExpress TreeList 拖动时中如何判断源节点作为目标节点的子节点还是兄弟节点
- 在DevExpress的treelist控件节点上实现右键弹出菜单项
- Devexpress TreeList控件绑定显示父子节点对像
- 关于 DevExpress.XtraTreeList.TreeList 树形控件 的操作
- 关于DevExpress.XtraTreeList.TreeList控件的使用——给TreeList添加RepositoryItem以实现文本编辑功能
- Flex中如何利用openItems属性,检测当前Tree的哪一个节点被展开
- 关于DevExpress的XtraTreeList使用方法总结
- DevExpress获取TreeList可视区域节点集合的实现方法
- cxDBTreeList控件(如何使用\主要是新增父级子级\)
- FLEX4 屏闭系统右键菜单列表控件DataGrid/Tree/List上点右键时自动选择当前行