SnapDocument.DataSources Property

Provides access to the collection of a document's data sources.

Namespace: DevExpress.Snap.Core.API

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


DataSourceInfoCollection DataSources { get; }
ReadOnly Property DataSources As DataSourceInfoCollection

Property Value

Type Description

A DataSourceInfoCollection object, specifying the collection of the data sources.


You can use two types of data sources bind SnapControl to data:

  • Application Data Source

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

    Use the SnapControl.DataSources property to access the control's data sources collection.

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

  • Document Data Source

    A data source that is specified from the user interface 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 added to a document data source can evaluate the field values that belong to the application data sources.

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

See Also