System.Windows.Forms.ControlBindingsCollection.Add Method

Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.

Syntax

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

Parameters

propertyName
The name of the control property to bind.
dataSource
An object representing the data source.
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false

Returns

The newly created System.Windows.Forms.Binding.

Remarks

Documentation for this section has not yet been entered.

Requirements

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