Skip to main content
Version: 4.1

IBinding

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Defines a component's binding instance.

public interface IBinding

Properties​

Instance member BindableComponent​

IBindableComponent: Returns the IBindableComponent.

Value: The IBindableComponent.

Instance member BindingMemberInfo​

BindingMemberInfo: Return the binding information based on the dataMember parameter in the #ctor constructor.

Value: A instance of the BindingMemberInfo struct that contains information about this Binding.

Instance member ControlUpdateMode​

ControlUpdateMode: Returns or sets when changes to the data source are propagated to the bound control property.

Value: One of the ControlUpdateMode values. The default is OnPropertyChanged.

Instance member DataSource​

Object: Returns the data source for this binding.

Value: An object that represents the data source.

Instance member DataSourceNullValue​

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

Value: The System.Object to be stored in the data source when the component property is empty or null. The default is DBNull for value types and null for non-value types.

Instance member DataSourceUpdateMode​

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

Value: A value that indicates when changes are propagated. The default is OnValidation.

Instance member FormatInfo​

IFormatProvider: Returns or sets the IFormatProvider that provides custom formatting behavior.

Value: The IFormatProvider implementation that provides custom formatting behavior.

Instance member FormatString​

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

Value: The string of format specifier characters that indicate how a value is to be displayed.

Instance member FormattingEnabled​

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

Value: true if type conversion and formatting of control property data is enabled; otherwise, false. The default is false.

Instance member NullValue​

Object: Returns or sets the Object to be set as the control property when the data source contains a DBNull value.

Value: The object to be set as the component property when the data source contains a DBNull value. The default is null.

Instance member PropertyName​

String: Returns the name of the control's data-bound property.

Value: The name of a component property to bind to.

Methods​

Instance member ReadValue()​

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

Instance member WriteValue()​

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

Implemented By​

NameDescription
BindingRepresents the simple binding between the property value of an object and the property value of a IBindableComponent.