Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FormatConditionRuleExpression.Expression Property

Gets or sets a Boolean expression. When the expression evaluates to true, a format is applied to cells.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue("")]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public string Expression { get; set; }

#Property Value

Type Default Description
String String.Empty

A string that specifies the Boolean expression.

#Remarks

Use the Expression property to specify a Boolean expression. If a cell value (or row values) meets the expression, the format is applied to a target cell(s).

See the Expression Editor Customization and Criteria Language Syntax documents to learn more about the syntax of expressions.

To make it easy to create expressions, the Expression Editor can be used.

ExpressionEditorForFormattingRule

Note

  • Some functions used in expression-based Excel Style Format Rules and expression-based unbound columns can only be exported to XLS(X) format in data-aware export mode. Refer to the Criteria Language Syntax document for details on which functions can be exported to XLS(X) format.
See Also