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         }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-01
  • 2021-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-07-04
相关资源
相似解决方案