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

GridFormatConditionHighlight.Value1 Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(null)]
public object Value1 { 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 Value1 value using the GridFormatConditionHighlight.Rule comparison operator. If a comparison operator requires two values, use Value1 along with the GridFormatConditionHighlight.Value2 property.

The Value1 and GridFormatConditionHighlight.Value2 properties are not in effect if the GridFormatConditionHighlight.Rule property is set to None or Expression.

Note

You cannot specify the Value1 and GridFormatConditionHighlight.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