Skip to main content
All docs
V21.2

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

CalculatedField Class

Provides the functionality for calculated fields.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v21.2.Core.dll

NuGet Package: DevExpress.Snap.Core

#Declaration

public class CalculatedField :
    IDisplayNamePropertyContainer,
    IComponent,
    IDisposable,
    ICalculatedField,
    INotifyPropertyChanged,
    ICloneable<CalculatedField>

The following members return CalculatedField objects:

#Remarks

The CalculatedField class allows you to specify a logical expression for a calculated field. In a Snap project, this expression is defined by the Expression Editor.

Snap-ExpressionEditor

Calculated fields are contained in the CalculatedFieldCollection. Use the DataSourceInfo.CalculatedFields property to access the data source’s calculated fields. The IDataSourceOwner.CalculatedFields property obtains the snap document’s collection of calculated fields.

A calculated field created from the UI is added to the data source’s collection.

#Inheritance

Object
CalculatedField
See Also