Encapsulates the data source for a data-bound component.
The Wisej.NET BindingSource
component simplifies data binding by providing currency management, change notification, and intermediary services between controls and data sources. Connect to data through the DataSource
property, optionally specifying a DataMember
for complex scenarios.
Access underlying data through:
Current
: Get or modify the current item
List
: Access the complete data collection
Manage data with methods like:
RemoveCurrent
: Delete current item
EndEdit
: Commit changes
CancelEdit
: Discard changes
Add
/AddNew
: Create new items
Customize behavior through events:
CurrentItemChanged
: React to current item updates
DataSourceChanged
: Handle data source modifications
Works seamlessly with the BindingNavigator
control through its BindingNavigator.BindingSource
property for VCR-style data navigation.
The RefreshValueOnChange
property enables automatic source property updates when data-bound values change.