zoukankan      html  css  js  c++  java
  • DevExpress控件给数据列表中特殊行数据设置颜色

          private void SetGridRowStyle()

            {

                //颜色设置

                if ( !string.IsNullOrEmpty(txtCphm.Text) ) {

                    MainView.FormatConditions.Clear();

                    DevExpress.XtraGrid.StyleFormatCondition styleFormatBlue = new DevExpress.XtraGrid.

                                 StyleFormatCondition(DevExpress.XtraGrid.FormatConditionEnum.Equal, clCphm, "", txtCphm.Text.ToUpper(), "");

                    styleFormatBlue.Appearance.ForeColor = System.Drawing.Color.Red;

                    styleFormatBlue.Appearance.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);

                    styleFormatBlue.Appearance.BackColor = Color.Yellow;

                    styleFormatBlue.ApplyToRow = true;

                    MainView.FormatConditions.Add(styleFormatBlue);

                }

            }

  • 相关阅读:
    软件工程课堂二
    软件工程第二周总结
    软件工程第一周开课博客
    软件工程课堂一
    开学第一次考试感想
    以Function构造函数方式声明函数
    document.scrollingElement
    标识符
    变量声明语句的提升
    用that代替this
  • 原文地址:https://www.cnblogs.com/yuesebote/p/9504237.html
Copyright © 2011-2022 走看看