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

                }

            }

  • 相关阅读:
    Maven安装以及Idea安装
    EasyUi和jQuery模拟后台管理页面
    EasyUI初级入门2
    EasyUI初级入门
    JS高级
    好用的表单验证工具 vuelidate
    为页面/接口添加加载进度条
    Nuxt.js(二、解决首屏速度与SEO)
    Nuxt 的介绍与安装
    Axios及其async await封装
  • 原文地址:https://www.cnblogs.com/yuesebote/p/9504237.html
Copyright © 2011-2022 走看看