Gets or sets the first constant that is compared with column values. This is a bindable property.
A value that is compared with column values.
Column cells are compared with the Value1 value using the FormatCondition.ValueRule comparison operator. Specific comparison operators require two values. In this case, use Value1 along with FormatCondition.Value2.
This example illustrates how to apply conditional formatting to a Market Share column in a GridControl to highlight cells that match a specific condition. Cells containing values that are less than 20% will be highlighted.
using DevExpress.Mobile.DataGrid; using DevExpress.Mobile.Core.ConditionalFormatting; // ... FormatCondition condition = new FormatCondition (); condition.FieldName = "MarketShare"; condition.PredefinedFormatName = "RedText"; condition.ValueRule = ConditionRule.Less; condition.Value1 = 0.20; grid.FormatConditions.Add (condition);