or
NumberFormatInfo RupeeFormat = new NumberFormatInfo(); RupeeFormat.NumberGroupSeparator = ","; RupeeFormat.NumberGroupSizes = new int[] {3, 2}; //NOTE: default format for decimal type columns DataGridViewCellStyle DecimalStyleVal = New DataGridViewCellStyle(); DecimalStyleVal.FormatProvider = RupeeFormat; DecimalStyleVal.Format = ConstantsUtils.PriceFormat; DecimalStyleVal.NullValue = "0.00"; DecimalStyleVal.Alignment = DataGridViewContentAlignment.MiddleRight;
ConditionalFormattingObject c1 = new ConditionalFormattingObject( "Grater", ConditionTypes.Greater, "5", "", true ); c1.CellBackColor = Color.LightBlue; c1.CellForeColor = Color.Black; ConditionalFormattingObject c2 = new ConditionalFormattingObject( "Less", ConditionTypes.Less, "5", "", true ); c2.CellBackColor = Color.IndianRed; c2.CellForeColor = Color.Black; ConditionalFormattingObject c3 = new ConditionalFormattingObject( "Equal", ConditionTypes.Equal, "5", "", true ); c3.CellBackColor = Color.White; c3.CellForeColor = Color.Black;
I am using above code for generating conditions.
However, here i am having "5" as a Value1 parameter, instead of that i want to check the same cell value with the new value for same cell
Like say, A column BidPrice have value 50 (Old value backcolor = black)
New price after 1 sec is 51 (New value)
so i want to put conditionalformatting in such a way that it should check Old value and New value for setting cell colors for price change display. in this case "c1" will be applied to the cell after new value.
Display should be BidPrice 51 ( backcolor = blue )
Hope you undderstand wat i want to ask.
Thanks,
private void frmMyForm_SizeChanged(object sender, EventArgs e) { gridViewTemplate1.Refresh(); gridViewTemplate2.Refresh(); }MultiColumnComboBox1.DataSource = DataTable1
MultiColumnComboBox1.DisplayMember = "Iso2"
MultiColumnComboBox1.ValueMember = "Iso2"
MultiColumnComboBox1.MultiColumnComboBoxElement.AutoSizeDropDownToBestFit = True
Dim fe As FilterExpression
fe = New FilterExpression(MultiColumnComboBox1.DisplayMember, FilterExpression.BinaryOperation.AND, GridKnownFunction.StartsWith)
MultiColumnComboBox1.EditorControl.MasterTemplate.FilterDescriptors.Add(fe)MultiColumnComboBox1.MultiColumnComboBoxElement.AutoCompleteMode = AutoCompleteMode.SuggestAppendMultiColumnComboBox1.AutoFilter = True
Any help is appreciated.
Sincerely Roberto

KnownColor clrTopBackgroundColor = KnownColor.White;KnownColor clrBottomBackgroundColor = KnownColor.LightBlue;radChart1.PlotArea.Appearance.FillStyle.FillType = FillType.Gradient;radChart1.PlotArea.Appearance.FillStyle.MainColor = Color.FromKnownColor(clrTopBackgroundColor);radChart1.PlotArea.Appearance.FillStyle.SecondColor = Color.FromKnownColor(clrBottomBackgroundColor);radChart1.Update();radChart1.UpdateGraphics();