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

                }

            }

  • 相关阅读:
    Codeforces Round #564 (Div. 1)
    Codeforces Round #569 (Div. 1)
    SDOI2019R2游记
    BZOJ 3555: [Ctsc2014]企鹅QQ
    SDOI2019R1游记
    计数的一些东西
    多项式的各种操作
    BZOJ 5424: 烧桥计划
    Codeforces Round #545 (Div. 1)
    概率期望学习笔记
  • 原文地址:https://www.cnblogs.com/yuesebote/p/9504237.html
Copyright © 2011-2022 走看看