zoukankan      html  css  js  c++  java
  • DevExpress中 TreeList控件的常规配置

    //以下为TreeList控件样式相关设置
                this.treelist_SystemCfg.BackColor = Color.Transparent;
                this.treelist_SystemCfg.Appearance.Empty.BackColor = Color.Transparent;
                this.treelist_SystemCfg.Appearance.Row.BackColor = Color.Transparent;
                this.treelist_SystemCfg.OptionsView.ShowColumns = false;
                //Node名称不可编辑
                this.treelist_SystemCfg.OptionsBehavior.Editable = false;
                this.treelist_SystemCfg.OptionsView.ShowHorzLines = false;
                this.treelist_SystemCfg.OptionsView.ShowIndicator = false;
                this.treelist_SystemCfg.OptionsView.ShowVertLines = false;
                this.treelist_SystemCfg.OptionsSelection.InvertSelection = true;
                this.treelist_SystemCfg.LookAndFeel.UseDefaultLookAndFeel = false;
                this.treelist_SystemCfg.LookAndFeel.UseWindowsXPTheme = true;
    
    
                this.treelist_SystemCfg.Columns.Clear();
                TreeListColumn tc1 = new TreeListColumn();
                tc1.Name = "ID";
                tc1.FieldName = "ID";
                tc1.Caption = "ID";
                tc1.VisibleIndex = 0;//此为必须设置的属性,否则无法显示列
                tc1.Visible = false;
    
                TreeListColumn tc2 = new TreeListColumn();
                tc2.Name = "Name";
                tc2.FieldName = "Name";
                tc2.Caption = "Name";
                tc2.VisibleIndex =1;//此为必须设置的属性,否则无法显示列
    
                this.treelist_SystemCfg.Columns.Add(tc1);
                this.treelist_SystemCfg.Columns.Add(tc2);
                this.treelist_SystemCfg.Nodes.Clear();
                this.treelist_SystemCfg.AppendNode(new object[] { "0", "中碧数据服务平台(双击刷新)" }, null);
    

      

  • 相关阅读:
    jmeter接口自动化-读取CSV文件执行测试用例
    文件流下载excel表格
    如何查看死锁的表
    学习笔记
    当你需要验证数组是否都是0
    实验二
    centos8 https访问报错
    Linux命令常用搜集持续更新
    一文搞懂C语言中指针、数组、指针数组、数组指针、函数指针、指针函数
    11
  • 原文地址:https://www.cnblogs.com/Chendezhou/p/9681861.html
Copyright © 2011-2022 走看看