Skip to main content
Version: 3.5

BindingContext

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Manages the collection of BindingManagerBase objects for any object that inherits from the Control class.

public class BindingContext : BindingContext

Constructors​

Instance memberBindingContext()​

Creates a new instance of BindingContext.

Properties​

Instance memberIsReadOnly​

Boolean: Returns whether the collection is read-only.

Instance memberItem(dataSource)​

BindingManagerBase: Returns the BindingManagerBase that is associated with the data source.

Instance memberItem(dataSource, dataMember)​

BindingManagerBase: Returns a BindingManagerBase that is associated with the data source and data member.

Throws:

  • Exception The specified dataMember does not exist in the specified data source.

Methods​

Instance memberContains(dataSource)​

Returns whether the BindingContext contains the BindingManagerBase associated with the data source.

ParameterTypeDescription
dataSourceObjectAn Object that represents the data source.

Returns: Boolean. true if the BindingContext contains the BindingManagerBase; otherwise, false.

Instance memberContains(dataSource, dataMember)​

Returns whether the BindingContext contains the BindingManagerBase associated with the data source and data member.

ParameterTypeDescription
dataSourceObjectAn Object that represents the data source.
dataMemberStringThe information needed to resolve to a specific BindingManagerBase.

Returns: Boolean. true if the BindingContext contains the BindingManagerBase; otherwise, false.

Static memberUpdateBinding(newBindingContext, binding)​

Associates a Binding with a new BindingContext.

ParameterTypeDescription
newBindingContextBindingContextThe new BindingContext to associate with the Binding.
bindingBindingThe Binding to associate with the new BindingContext.

Events​

Instance memberCollectionChanged​

CollectionChangeEventHandler Fired when the collection of data sources changes.