System.Windows.Forms.ControlBindingsCollection.Add Method

Creates a System.Windows.Forms.Binding using the specified control property name, data source, and data member, and adds it to the collection.

Syntax

public Binding Add (string propertyName, object dataSource, string dataMember)

Parameters

propertyName
The name of the control property to bind.
dataSource
An object that represents the data source.
dataMember
The property or list to bind to.

Returns

The newly created System.Windows.Forms.Binding.

Remarks

Requirements

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