zoukankan      html  css  js  c++  java
  • DevExpress GridControl行颜色标识


          

     1         private void Validate4RowColor()
     2         {
     3             //this.gridChild_Main.Views[0]
     4             DevExpress.XtraGrid.StyleFormatCondition styleFormatCondition1 = new DevExpress.XtraGrid.StyleFormatCondition();
     5             styleFormatCondition1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     6             styleFormatCondition1.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     7             styleFormatCondition1.Appearance.Options.UseBackColor = true;
     8             styleFormatCondition1.ApplyToRow = true;
     9             styleFormatCondition1.Column = this.col_gridChild_Main_Quantity;
    10             styleFormatCondition1.Condition = DevExpress.XtraGrid.FormatConditionEnum.Expression;
    11             styleFormatCondition1.Expression = "[OutQuantity] < [Quantity]";
    12             this.gridChild_Main.CustomerMainGridView.FormatConditions.AddRange(new DevExpress.XtraGrid.StyleFormatCondition[] {
    13             styleFormatCondition1});
    14             //this.gridView1.GridControl = this.gridControl;
    15         }
  • 相关阅读:
    三数之和
    167
    二分搜索树
    687
    索引堆
    二分查找 leetcode704
    leetcode 56合并区间 java
    leetcode 1046
    堆的数据结构java
    leetcode 493
  • 原文地址:https://www.cnblogs.com/xakml/p/3831253.html
Copyright © 2011-2022 走看看