Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V21.2
  • CalculatedField.DataSourceName Property

    Associates the CalculatedField with a data source.

    Namespace: DevExpress.Snap.Core.API

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

    NuGet Package: DevExpress.Snap.Core

    Declaration

    public string DataSourceName { get; set; }

    Property Value

    Type Description
    String

    A String value, specifying the data source name.

    Remarks

    If a specified name matches different data sources from both the SnapControl.DataSources and SnapDocument.DataSources collections, only the SnapDocument‘s data source is considered and assigned to the calculated field.

    The calculated fields that belong to a SnapDocument‘s data source collection can access the data sources from the SnapControl‘s collection, but not vice versa.

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataSourceName property.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also