GridFormatConditionHighlight.Value2 Property
Gets or sets the second constant that is compared with cell values.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Object | null | An Object that is compared with cell values. |
#Remarks
The cell values are compared with the GridFormatConditionHighlight.Value1 value using the GridFormatConditionHighlight.Rule comparison operator. If a comparison operator requires two values, use GridFormatConditionHighlight.Value1 along with the Value2 property.
The GridFormatConditionHighlight.Value1 and Value2 properties are not in effect if the GridFormatConditionHighlight.Rule property is set to None or Expression.
Note
You cannot specify the Grid
#Example
{
CardViewFormatConditionHighlight Format2 = new CardViewFormatConditionHighlight();
Format2.Rule = GridConditionRule.Between;
Format2.Format = GridConditionHighlightFormat.GreenFillWithDarkGreenText;
Format2.Value1 = 0;
Format2.Value2 = 15;
Format2.FieldName = "UnitPrice";
ASPxCardView1.FormatConditions.Add(Format2);
}