System.Windows.Forms.Binding Members

The members of System.Windows.Forms.Binding are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Windows.Forms.Binding class that simple-binds the indicated control property to the specified data member of the data source.

Initializes a new instance of the System.Windows.Forms.Binding class that binds the indicated control property to the specified data member of the data source, and optionally enables formatting to be applied.

Initializes a new instance of the System.Windows.Forms.Binding class that binds the specified control property to the specified data member of the specified data source. Optionally enables formatting and propagates values to the data source based on the specified update setting.

Initializes a new instance of the System.Windows.Forms.Binding class that binds the indicated control property to the specified data member of the specified data source. Optionally enables formatting, propagates values to the data source based on the specified update setting, and sets the property to the specified value when a DBNull is returned from the data source.

Initializes a new instance of the System.Windows.Forms.Binding class that binds the specified control property to the specified data member of the specified data source. Optionally enables formatting with the specified format string; propagates values to the data source based on the specified update setting; and sets the property to the specified value when a DBNull is returned from the data source.

Initializes a new instance of the System.Windows.Forms.Binding class with the specified control property to the specified data member of the specified data source. Optionally enables formatting with the specified format string; propagates values to the data source based on the specified update setting; enables formatting with the specified format string; sets the property to the specified value when a DBNull is returned from the data source; and sets the specified format provider.

Public Properties

[read-only]
BindableComponentIBindableComponent.

Gets the control the System.Windows.Forms.Binding is associated with.

[read-only]
BindingManagerBaseBindingManagerBase.

Gets the System.Windows.Forms.BindingManagerBase for this System.Windows.Forms.Binding.

[read-only]
BindingMemberInfoBindingMemberInfo.

Gets an object that contains information about this binding based on the dataMember parameter in the erload:System.Windows.Forms.Binding.#ctor constructor.

[read-only]
ControlControl.

Gets the control that the binding belongs to.

ControlUpdateModeControlUpdateMode.

Gets or sets when changes to the data source are propagated to the bound control property.

[read-only]
DataSourceobject.

Gets the data source for this binding.

DataSourceNullValueobject.

Gets or sets the value to be stored in the data source if the control value is null or empty.

DataSourceUpdateModeDataSourceUpdateMode.

Gets or sets a value that indicates when changes to the bound control property are propagated to the data source.

FormatInfoIFormatProvider.

Gets or sets the IFormatProvider that provides custom formatting behavior.

FormatStringstring.

Gets or sets the format specifier characters that indicate how a value is to be displayed.

FormattingEnabledbool.

Gets or sets a value indicating whether type conversion and formatting is applied to the control property data.

[read-only]
IsBindingbool.

Gets a value indicating whether the binding is active.

NullValueobject.

Gets or sets the object to be set as the control property when the data source contains a DBNull value.

[read-only]
PropertyNamestring.

Gets or sets the name of the control's data-bound property.

Public Methods

ReadValue()

Sets the control property to the value read from the data source.

WriteValue()

Reads the current value from the control property and writes it to the data source.

Protected Methods

Public Events

BindingComplete

Occurs when the Binding.FormattingEnabled property is set to true and a binding operation is complete, such as when data is pushed from the control to the data source or vice versa

Format

Occurs when the property of a control is bound to a data value.

Parse

Occurs when the value of a data-bound control changes.