Skip to main content
A newer version of this page is available. .

BaseEdit.BindingManager Property

Gets the BindingManagerBase object.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[Browsable(false)]
public BindingManagerBase BindingManager { get; }

Property Value

Type Description
BindingManagerBase

A BindingManagerBase object managing all binding controls that are bound to the same data source and data member. null (Nothing in Visual Basic) if no data source is bound.

Remarks

Editor controls can be bound to a programmatically created collection. If the collection implements the IBindingList interface, there is no need to notify the editor of changes made in the bound collection (when adding, removing items). This is because the IBindingList interface declares the ListChanged event that is handled by the editor in order to track data changes.

But, if the editor’s data source collection does not support data change notifications, you will need to update each control separately so that they reflect data changes. This can be avoided using the BindingManager property that returns the BindingManagerBase object. This object manages the synchronization of data-bound controls that are bound to the same data source. You must cast the BindingManagerBase object returned by the BindingManager property of any data-aware control to CurrencyManager. This provides access to the list representing the data source via the CurrencyManager.List property. After modifying the list, you can update all bound controls at once by calling the CurrencyManager.Refresh method.

You can also obtain the information on the current record, total number of records, position within the dataset, and managed bindings using properties provided by the BindingManagerBase object.

See Also