Skip to main content
Version: 4.1

BindingContext

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public class BindingContext : BindingContext

Constructors​

Instance member BindingContext()​

Creates a new instance of BindingContext.

Properties​

Instance member IsReadOnly​

Boolean: Returns whether the collection is read-only.

Instance member Item(dataSource)​

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

Instance member Item(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 member Add(dataSource, listManager)​

Adds the BindingManagerBase associated with a specific data source to the collection.

ParameterTypeDescription
dataSourceObjectThe object associated with the BindingManagerBase.
listManagerBindingManagerBaseThe BindingManagerBase to add.

Throws:

Protected member AddCore(dataSource, listManager)​

Adds the BindingManagerBase associated with a specific data source to the collection.

ParameterTypeDescription
dataSourceObjectThe object associated with the BindingManagerBase.
listManagerBindingManagerBaseThe BindingManagerBase to add.

Throws:

Instance member Clear()​

Clears the collection of any BindingManagerBase objects.

Protected member ClearCore()​

Clears the collection of any BindingManagerBase objects.

Instance member Contains(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 member Contains(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.

Instance member Remove(dataSource)​

Removes the BindingManagerBase associated with the specified dataSource .

ParameterTypeDescription
dataSourceObjectAn object that represents the data source.

Protected member RemoveCore(dataSource)​

Removes the BindingManagerBase associated with the specified dataSource .

ParameterTypeDescription
dataSourceObjectAn object that represents the data source.

Static member UpdateBinding(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 member CollectionChanged​

CollectionChangeEventHandler Fired when the collection of data sources changes.