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

                }

            }

  • 相关阅读:
    squid详解(正向代理、透明代理、反向代理)
    kvm虚拟化管理
    centos7系统排错
    网络基础(子网划分)
    cobbler无人值守自动安装
    MSSQL提权之xp_cmdshell
    MySQL 拿 WebShell
    9
    友价商城SQL注入
    Potato土豆win综合提权
  • 原文地址:https://www.cnblogs.com/yuesebote/p/9504237.html
Copyright © 2011-2022 走看看