DataSourceInfo Class
Contains information about a document’s data source.
Namespace: DevExpress.Snap.Core.API
Assembly: DevExpress.Snap.v18.1.Core.dll
Declaration
Related API Members
The following members accept/return DataSourceInfo objects:
Remarks
You can assign a DataSourceInfo to a SnapDocument in the following ways.
Add a single default data source (via the IDataSourceOwner.DataSource property).
To access the default data source and its calculated fields, use the DataSourceInfoCollection.DefaultDataSourceInfo method.
Add a collection of non-default data sources (via the SnapDocument.DataSources property).
To access a non-default data source, use the DataSourceInfoCollection.GetInfo method.
To check whether or not a data source is the default, use the DataSourceInfoCollection.IsDefaultDataSource method.
To update the DataSourceInfo collection, use the SnapDocument.BeginUpdateDataSource and SnapDocument.EndUpdateDataSource methods.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataSourceInfo class.
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.