• C# TreeView AfterSelect事件 从节点中获取所需数据


    /// <summary>
            /// 从Treeview客户节点中获取信息
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void SalesOrdertreeView_AfterSelect(object sender, TreeViewEventArgs e)
            {
                //Level 为2的节点为客户节点层次
                if(SalesOrdertreeView.SelectedNode.Level==2&&SalesOrdertreeView.SelectedNode!=null)
                {
                    label2.Text = SalesOrdertreeView.SelectedNode.Tag.ToString();
                    label4.Text = SalesOrdertreeView.SelectedNode.Text;
                    label5.Text = SalesOrdertreeView.SelectedNode.FullPath;
                }else
                {
                    label2.Text = "";
                    label4.Text = "";
                    label5.Text = "";
                   
                }

            }

  • 相关阅读:
    HDU
    C# Stopwatch
    RMQ(Range Minimum Query)问题(转)
    HDU
    POJ
    HDU
    POJ
    POJ
    docker安装testlink
    廖雪峰Java2面向对象编程-3继承和多态-2多态
  • 原文地址:https://www.cnblogs.com/kingwangzhen/p/1486973.html
Copyright © 2020-2023  润新知