Skip to main content
Version: 4.1

BindingManagerBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Manages all Binding objects that are bound to the same data source and data member.

public class BindingManagerBase

Properties​

Instance member Bindings​

BindingsCollection: Returns the collection of bindings being managed.

Instance member Count​

Int32: Returns the number of items in the list.

Instance member Current​

Object: Returns the current item in the list.

Instance member IsBindingSuspended​

Boolean: Returns whether binding is suspended.

Instance member Position​

Int32: Returns or sets the position of the data binding source within the list.

Methods​

Instance member AddNew()​

Adds a new item to the underlying list.

Throws:

  • NotSupportedException The underlying data source does not implement IBindingList, or the data source has thrown an exception because the user has attempted to add a row to a read-only or fixed-size DataView.

Instance member CancelCurrentEdit()​

Cancels the current edit operation.

Instance member EndCurrentEdit()​

Ends the current edit operation.

Instance member GetItemProperties()​

Returns the property descriptor collection for the underlying list.

Returns: PropertyDescriptorCollection. A PropertyDescriptorCollection for the list.

Instance member RemoveAt(index)​

Removes the item at the specified index.

ParameterTypeDescription
indexInt32The index of the item to remove from the list.

Throws:

Instance member ResetCurrentItem()​

Causes a control bound to this data source to re-read the current item and refresh the displayed value.

Instance member ResetItem(itemIndex)​

Causes a control bound to this data source to re-read the item at the specified itemIndex and refresh the displayed value.

ParameterTypeDescription
itemIndexInt32The index of the item that has changed.

Instance member ResumeBinding()​

Resumes data binding.

Instance member SuspendBinding()​

Suspends data binding to prevents changes from updating the bound data source.

Instance member UpdateBindings()​

Reads the current values from the data source and sends them to the control.

Events​

Instance member BindingComplete​

BindingCompleteEventHandler Fired at the completion of a data-binding operation.

Instance member CurrentChanged​

EventHandler Fired when the currently bound item changes.

Instance member CurrentItemChanged​

EventHandler Fired when the state of the currently bound item changes.

Instance member DataError​

BindingManagerDataErrorEventHandler Fired when an Exception is silently handled by the BindingManagerBase.

Instance member PositionChanged​

EventHandler Fired after the value of the Position property has changed.

Inherited By​

NameDescription
CurrencyManagerKeeps data-bound controls synchronized with each other: showing data from the same record.
PropertyManagerMaintains a Binding between an object's property and a data-bound control property.