zoukankan      html  css  js  c++  java
  • TreeList控件使用2

    1、获取TreeList节点信息!

    Public DataRow GetNodeData(TreeList TL,TreeListNode Fnode)

    {

            object w=TL.GetDataRecordByNode(Fnode);

            DataRowView drv=(DataRowView)w;

            return drv.Row;

    }

    2、获得节点的所有父节点

    private ArrayList GetAllParentNode(TreeListNode Fnode)

    {

           ArrayList ALNode=new ArrayList();

           if(Fnode.ParentNode!=null)

             {

                    ALNode.Add(FNode.ParentNode("节点列"));

                    GetAllParentNode(ALNode.ParentNode);

             }

          return ALNode;

    }

    3、TreeList动态增加列

    TreeListColumn tlc=TL.Columns.Add();

    tlc.Caption="";设置列名

    tlc.FieldName="";设置绑定的字段名

    tlc.Width="";设置列宽

    tlc.visible=True|False设置列的可见性

    4、TreeList中增加链接

    ColumnEdit设为链接

    链接的单击事件在 In-place Editor Repository中

    切忌将Treelist的ReadOnly设为True否则点击链接无效!

  • 相关阅读:
    rc.local文件
    mysql 常用语句模板
    gradle使用
    Elasticsearch 聚合
    华盛顿大学 Programming Languages
    802.11基础
    802.11简单认证过程
    网络诊断错误归类
    802.1X基础
    终端管理软件tmux
  • 原文地址:https://www.cnblogs.com/cwgyn/p/2382681.html
Copyright © 2011-2022 走看看