System.Windows.Forms.ControlBindingsCollection Class

Represents the collection of data bindings for a control.

See Also: ControlBindingsCollection Members

Syntax

[System.ComponentModel.TypeConverter("System.Windows.Forms.Design.ControlBindingsConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.Editor("System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.ComponentModel.DefaultEvent("CollectionChanged")]
public class ControlBindingsCollection : BindingsCollection

Remarks

Simple data binding is accomplished by adding System.Windows.Forms.Binding objects to a System.Windows.Forms.ControlBindingsCollection. Any object that inherits from the System.Windows.Forms.Control class can access the System.Windows.Forms.ControlBindingsCollection through the Control.DataBindings property. For a list of Windows controls that support data binding, see the System.Windows.Forms.Binding class.

The System.Windows.Forms.ControlBindingsCollection contains standard collection methods such as ControlBindingsCollection.Add(Binding), ControlBindingsCollection.Clear, and ControlBindingsCollection.Remove(Binding).

To get the control that the System.Windows.Forms.ControlBindingsCollection belongs to, use the ControlBindingsCollection.Control property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0