Wisej.Web.Binding
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.1.0.0)
Represents the simple binding between the property value of an object and the property value of a control.
Initializes a new instance of the Binding class that simple-binds the indicated control property to the specified data member of the data source.
Name | Type | Description |
---|---|---|
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.
Initializes a new instance of the Binding class that binds the indicated control property to the specified data member of the data source, and optionally enables formatting to be applied.
Name | Type | Description |
---|---|---|
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 ("").
Initializes a new instance of the 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.
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.
Initializes a new instance of the 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.
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.
Initializes a new instance of the 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.
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.
Initializes a new instance of the 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.
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.
IBindableComponent: Returns the control the Binding is associated with. (Default: null
)
BindingMemberInfo: Return the binding information based on the dataMember parameter in the Binding constructor.
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
)
DataSourceUpdateMode: Returns or sets a value that indicates when changes to the bound control property are propagated to the data source. (Default: OnValidation
)
BindingCompleteEventHandler Fired when the FormattingEnabled property true and a binding operation is completed.
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 |
---|---|---|
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.
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.