Skip to main content

IDataSourceOwner.DataSource Property

Specifies the datasource for the DataSourceInfo collection.

Namespace: DevExpress.Snap.Core.API

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

NuGet Package: DevExpress.Snap.Core

Declaration

object DataSource { get; set; }

Property Value

Type Description
Object

A Object descendant, specifying the datasource.

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 DataSource property of a currently opened SnapDocument.

    To access the collection of a SnapDocument‘s data sources, use the SnapDocument.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