DevExpress控件中的TreeList如果是绑定数据源方式绑定的数据,如何获取选定节点上面包含的数据呢?
 如下方法即可
TreeListNode selectNode = this.treeList1.Selection[0];
 DataRowView nodeData = this.treeList1.GetDataRecordByNode(selectNode) as DataRowView;
 int attachID =Convert.ToInt32( nodeData["id"]);

 

 

 

www.0855map.com 黔东南公众信息网

欢迎加入技术交流QQ群:186226657

相关文章:

  • 2021-07-30
  • 2021-08-18
  • 2021-11-06
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
相关资源
相似解决方案