ControlBindingsCollection
Wisej.Web.ControlBindingsCollection
Last updated
Was this helpful?
Wisej.Web.ControlBindingsCollection
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents the collection of data bindings for a control.
Initializes a new instance of the class with the specified bindable control.
control
: Returns the control that the collection belongs to.
: Returns or sets the default for a in the collection.
Throws:
binding
Throws:
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
Throws:
Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false
Throws:
Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false
formatString
One or more format specifier characters that indicate how a value is to be displayed.
Throws:
Creates a binding with the specified control property name, data source, data member, and information about whether formatting is enabled, and adds the binding to the collection.
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
Throws:
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
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
Throws:
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
nullValue
Throws:
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed.
Throws:
propertyName
The name of the control property to bind.
dataSource
dataMember
The property or list to bind to.
formattingEnabled
true to format the displayed data; otherwise, false.
updateMode
nullValue
formatString
One or more format specifier characters that indicate how a value is to be displayed
formatInfo
Throws:
Removes all bindings in the collection.
binding
Throws:
index
The zero-based index of the item to remove.
Throws:
The the binding collection belongs to.
: Returns the specified by the control's property name.
: Returns the at the specified index.
The collection doesn't contain an item at the specified index.
Adds the specified to the collection.
The to add.
The binding is null.
The control property is already data-bound.
The does not specify a valid column.
Creates a using the specified control property name, data source, and data member, and adds it to the collection.
An that represents the data source.
Returns: . The newly created .
The propertyName is already data-bound.
The dataMember doesn't specify a valid member of the dataSource .
An representing the data source.
Returns: . The newly created .
The property given by propertyName does not exist on the control.-or-The property given is a read-only property.
If formatting is disabled and the propertyName is neither a valid property of a control nor an empty string ("").
An representing the data source.
Returns: . The newly created .
The property given by propertyName does not exist on the control.-or-The property given is a read-only property.
If formatting is disabled and the propertyName is neither a valid property of a control nor an empty string ("").
An representing the data source.
The to be applied to the bound control property if the data source value is .
Returns: . The newly created .
The property given by propertyName does not exist on the control.-or-The property given is a read-only property.
If formatting is disabled and the propertyName is neither a valid property of a control nor an empty string ("").
An representing the data source.
One of the values.
Returns: . The newly created .
The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
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, setting the property to the specified value when is returned from the data source, and adding the binding to the collection.
An representing the data source.
One of the values.
The to be applied to the bound control property if the data source value is .
Returns: . The newly created
The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting with the specified format string, propagating values to the data source based on the specified update setting, setting the property to the specified value when is returned from the data source, and adding the binding to the collection.
An representing the data source.
One of the values.
The to be applied to the bound control property if the data source value is .
Returns: . The newly created
The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Creates a binding that binds the specified control property to the specified data member of the specified data source, optionally enabling formatting with the specified format string, propagating values to the data source based on the specified update setting, setting the property to the specified value when is returned from the data source, setting the specified format provider, and adding the binding to the collection.
An representing the data source.
One of the values.
The to be applied to the bound control property if the data source value is .
An implementation of to override default formatting behavior.
Returns: . The newly created .
The property given by propertyName does not exist on the control or is read-only.-or-The specified data member does not exist on the data source.-or-The data source, data member, or control property specified are associated with another binding in the collection.
Removes the specified from the collection.
The to remove.
The binding is null.
Removes the at the specified index.
The index value is less than 0, or it is greater than the number of bindings in the collection.
Fired when the collection has changed.
Fired when the collection is about to change.