Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting, propagating values to the data source based on the specified update setting, and adding the binding to the collection.
- 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.
- updateMode
One of the System.Windows.Forms.DataSourceUpdateMode values.
![]()
The newly created System.Windows.Forms.Binding.
Calling the ControlBindingsCollection.Add(string, object, string, bool, DataSourceUpdateMode) method raises the BindingsCollection.CollectionChanged event.