XPBindingSource.DataSource Property
Gets or sets a data source the XPBindingSource binds to a control.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Object | null | An object that represents a data source for the XPBinding |
#Remarks
The XPBindingSource component can use data from the following data sources:
- XPO collections
- System collections (see Collections)
- Custom collections
- Persistent objects
The XPBindingSource accepts generic and nongeneric collections.
The XPBindingSource supports most XPO collections fully, for example:
- XPCollection
- XPCollection<T>
- XPAssociationList
- XPAssociationList<T>
System collections, custom collections, and persistent objects may have the following limitations:
Description | Result | Example |
---|---|---|
A data source does not implement at least one of the following: IBinding | Changes within the data source do not trigger the List | |
A generic collection does not implement IXPDictionary | Set the Dictionary or the Object | |
A nongeneric collection does not implement IXPClass | Set the Object | |
A data source does not implement IXPSession | After the XPBinding |
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSource 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.