Skip to main content
Version: 3.5

CurrencyManager

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Keeps data-bound controls synchronized with each other: showing data from the same record.

public class CurrencyManager : BindingManagerBase

Properties

Instance memberCount

Int32: Returns the number of items in the list.

Instance memberCurrent

Object: Returns the current item in the list.

Instance memberList

IList: Returns the list for this CurrencyManager.

Instance memberPosition

Int32: Returns or sets the current position within the list.

Instance memberShouldBind

Boolean: Returns true when the bound data source can accept changes. Calling SuspendBinding sets this flag to false and ResumeBinding sets it to true (default).

Methods

Instance memberAddNew()

Adds a new item to the underlying list.

Throws:

  • NotSupportedException The underlying data source does not implement IBindingList, or the collection element doesn't implement a public parameterless constructor, 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 memberRefresh()

Forces a refresh of the data-bound list.

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.

Events

Instance memberItemChanged

ItemChangedEventHandler Fired when the current item has been altered.

Instance memberListChanged

ListChangedEventHandler Fired when the list changes or an item in the list changes.

Instance memberMetaDataChanged

EventHandler Fired when the metadata of the List has changed.