Wisej.Web.Binding
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents the simple binding between the property value of an object and the property value of a IBindableComponent.
Throws:
Exception propertyName is neither a valid property of a control nor an empty string ("").
ArgumentException The property given by propertyName does not exist on the control.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the property given is a read-only property.
Exception Formatting is disabled and propertyName is neither a valid property of a control nor an empty string ("").
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Throws:
ArgumentException The property given by propertyName does not exist on the control; or the data source or data member or control property specified are associated with another binding in the collection.
Control: Returns the control that the binding belongs to. (Default: null
)
ControlUpdateMode: Returns or sets when changes to the data source are propagated to the bound control property. (Default: OnPropertyChanged
)
Object: Returns the data source for this binding.
Object: Returns or sets the value to be stored in the data source if the control value is null or empty.
DataSourceUpdateMode: Returns or sets a value that indicates when changes to the bound control property are propagated to the data source. (Default: OnValidation
)
IFormatProvider: Returns or sets the IFormatProvider that provides custom formatting behavior. (Default: null
)
String: Returns or sets the format specifier characters that indicate how a value is to be displayed.
Boolean: Returns or sets a value indicating whether type conversion and formatting is applied to the control property data. (Default: False
)
Boolean: Returns whether the binding is active.
Object: Returns or sets the Object to be set as the control property when the data source contains a DBNull value.
String: Returns the name of the control's data-bound property. (Default: ""
)
Sets the control property to the value read from the data source.
Reads the current value from the control property and writes it to the data source.
ConvertEventHandler Fired when the property of a control is bound to a data value.
ConvertEventHandler Fired when the value of a data-bound control changes.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
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.
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.
formattingEnabled
true to format the displayed data; otherwise, false.
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.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
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.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
nullValue
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.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
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.
dataSourceUpdateMode
One of the DataSourceUpdateMode values.
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
formatInfo
An implementation of IFormatProvider to override default formatting behavior.
Defines a component's binding instance.