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 }