Skip to main content
A newer version of this page is available.

SnapDocument.DataSources Property

Provides access to the collection of a document’s datasources.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v19.1.Core.dll

Declaration

DataSourceInfoCollection DataSources { get; }

Property Value

Type Description
DataSourceInfoCollection

A DataSourceInfoCollection object, specifying the collection of the datasources.

Remarks

The data binding in Snap can be accomplished by creating a data source of one of the following types.

  • Application Data Source

    A data source that is assigned to the SnapControl.DataSource property cannot be edited or removed from within of the Snap application and is always available for any document opened in it.

    To access the collection of a SnapControl‘s data sources, use the SnapControl.DataSources property.

    A calculated field that is added to an application data source has no access to fields from document data sources.

  • Document Data Source

    A data source that is specified via the user interface of a Snap application is assigned to the IDataSourceOwner.DataSource property of a currently opened SnapDocument.

    To access the collection of a SnapDocument‘s data sources, use the DataSources property.

    A calculated field that is added to a document data source can evaluate the field values that belong to the application data sources.

An application data source is given priority when it has a name identical to a document data source.

See Also