Skip to main content
Version: 3.5

BindingManagerBase

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

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

public class BindingManagerBase

Properties

Instance memberBindings

BindingsCollection: Returns the collection of bindings being managed.

Instance memberCount

Int32: Returns the number of items in the list.

Instance memberCurrent

Object: Returns the current item in the list.

Instance memberIsBindingSuspended

Boolean: Returns whether binding is suspended.

Instance memberPosition

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

Methods

Instance memberAddNew()

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 memberCancelCurrentEdit()

Cancels the current edit operation.

Instance memberEndCurrentEdit()

Ends the current edit operation.

Instance memberGetItemProperties()

Returns the property descriptor collection for the underlying list.

Returns: PropertyDescriptorCollection. A PropertyDescriptorCollection for the list.

Instance memberRemoveAt(index)

Removes the item at the specified index.

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

Throws:

Instance memberResetCurrentItem()

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

Instance memberResetItem(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 memberResumeBinding()

Resumes data binding.

Instance memberSuspendBinding()

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

Instance memberUpdateBindings()

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

Events

Instance memberBindingComplete

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

Instance memberCurrentChanged

EventHandler Fired when the currently bound item changes.

Instance memberCurrentItemChanged

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

Instance memberDataError

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

Instance memberPositionChanged

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.