GridFormatConditionHighlight.Value1 Property
In This Article
Gets or sets the first 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 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 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);
}
See Also