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);
    

      

  • 相关阅读:
    十大Intellij IDEA快捷键
    IDEA 在同一目录创建多个项目
    IDEA2017 使用(二)
    idea使用(一)
    js == 与 === 的区别[转]
    Spring Boot(一)
    微服务实战(一):微服务架构的优势与不足
    phpcms:三、头部包含
    phpcms:二、头部尾部包含
    phpcms:一、安装及新建模板
  • 原文地址:https://www.cnblogs.com/Chendezhou/p/9681861.html
Copyright © 2011-2022 走看看