Control.DataBindings Property
.NET Framework (current version)
Gets the data bindings for the control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
abstract DataBindings : ControlBindingsCollection with get override DataBindings : ControlBindingsCollection with get
Property Value
Type: System.Windows.Forms.ControlBindingsCollectionA ControlBindingsCollection that contains the Binding objects for the control.
Implements
IBindableComponent.DataBindingsUse the DataBindings property to access the ControlBindingsCollection. By adding Binding objects to the collection, you can bind any property of a control to the property of an object.
The following code example adds Binding objects to the ControlBindingsCollection of five controls: four TextBox controls and a DateTimePicker control. The ControlBindingsCollection is accessed through the DataBindings property of the Control class.
.NET Framework
Available since 1.1
Available since 1.1
Show: