Skip to main content
.NET 8.0+

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

IModelMember.Expression Property

Specifies an expression used to calculate the custom field value.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[ModelBrowsable(typeof(ModelMemberVisibilityCalculator))]
[Required(typeof(ModelMemberRequiredCalculator))]
string Expression { get; set; }

#Property Value

Type Description
String

A string that is an expression used to calculate the field value.

#Remarks

The Expression property is visible in the Model Editor for custom calculated fields only.

To define a calculated field, set the IModelMember.IsCalculated property to true and pass the expression used to compute this field value to the Expression property. Click the ellipsis button located to the right of the property value to invoke the Expression Editor dialog. In this editor, you can select functions, operators and operands using the editor controls.

See Also