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         }
  • 相关阅读:
    String
    Array常用方法
    Array类
    ruby调试/练习时的小技巧
    集合类对象的遍历处理办法
    Tech road one step 7-Noc to 13-Nov
    Tech road one step 31-Oct 6-Nov
    TechRoad_oneStep_17-23 10
    TechRoad_oneStep_1001
    TechRoad_oneStep_0919
  • 原文地址:https://www.cnblogs.com/xakml/p/3831253.html
Copyright © 2011-2022 走看看