corelibraries-devexpress-dot-dataaccess-dot-objectbinding.md
Enables binding data-aware controls and components to a runtime-created object or an instance method.
Namespace : DevExpress.DataAccess.ObjectBinding
Assembly : DevExpress.DataAccess.v25.2.dll
NuGet Package : DevExpress.DataAccess
[ToolboxBitmap(typeof(ObjectDataSource), "ObjectDataSource.bmp")]
public class ObjectDataSource :
DataComponentBase,
ITypedList,
IList,
ICollection,
IEnumerable,
IListAdapter,
IDataComponent,
IComponent,
IDisposable,
ISupportInitialize,
IBindingList,
IDynamicLookupSettingsDataProvider
<ToolboxBitmap(GetType(ObjectDataSource), "ObjectDataSource.bmp")>
Public Class ObjectDataSource
Inherits DataComponentBase
Implements ITypedList,
IList,
ICollection,
IEnumerable,
IListAdapter,
IDataComponent,
IComponent,
IDisposable,
ISupportInitialize,
IBindingList,
IDynamicLookupSettingsDataProvider
The ObjectDataSource is a data component much like the standard .NET BindingSource component.
The ObjectDataSource component has the following advantages over BindingSource :
Note
The Object Data Source displays only public non-static properties in the Field List.
Refer to the following help topic for examples of use: Use ObjectDataSource.
The following help topics decribe how to use the ObjectDataSource to supply DevExpress controls/components with data:
You can use the Data Source Wizard to bind a component to an Object Data Source. To make a particular assembly, class, or member appear in the Data Source Wizard, use the following attributes: HighlightedAssemblyAttribute, HighlightedClassAttribute, and HighlightedMemberAttribute.
The following properties are used to bind the ObjectDataSource to data.
ObjectDataSource.RebuildResultSchema
Call this method to build the data source schema.
Call the RebuildResultSchema(IEnumerable<IParameter>) overloaded method instead to apply values from external parameters (for instance, report parameters) to the data source parameters before the schema is built.
Object MarshalByRefObject Component DataComponentBase ObjectDataSource DashboardObjectDataSource
See Also
How to Create the Data Access Library Data Sources at Runtime
Connect to an Object Data Source
Bind a Report to an Object Data Source
WinForms Dashboard - Object Data Source