Skip to main content
Version: 4.1

CurrencyManager

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public class CurrencyManager : BindingManagerBase

Properties​

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 List​

IList: Returns the list for this CurrencyManager.

Instance member Position​

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

Instance member ShouldBind​

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 member AddNew()​

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 member Refresh()​

Forces a refresh of the data-bound list.

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.

Events​

Instance member ItemChanged​

ItemChangedEventHandler Fired when the current item has been altered.

Instance member ListChanged​

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

Instance member MetaDataChanged​

EventHandler Fired when the metadata of the List has changed.