Skip to main content
A newer version of this page is available. .
Tab

GridFormatConditionHighlight.Value2 Property

Gets or sets the second constant that is compared with cell values.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[DefaultValue(null)]
public object Value2 { get; set; }

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 GridFormatConditionHighlight.Value1 and Value2 properties in markup.

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);
}
See Also