CurrencyManager

Wisej.Web.CurrencyManager

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.2.0.0)

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

public class CurrencyManager : BindingManagerBase

Properties

Count

Int32arrow-up-right: Returns the number of items in the list.

Current

Objectarrow-up-right: Returns the current item in the list.

List

IListarrow-up-right: Returns the list for this CurrencyManager.

Position

Int32arrow-up-right: Returns or sets the current position within the list.

ShouldBind

Booleanarrow-up-right: 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

AddNew()

Adds a new item to the underlying list.

Throws:

Refresh()

Forces a refresh of the data-bound list.

ResetCurrentItem()

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

ResetItem(itemIndex)

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

Parameter
Type
Description

itemIndex

The index of the item that has changed.

ResumeBinding()

Resumes data binding.

SuspendBinding()

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

Events

ItemChanged

ItemChangedEventHandler Fired when the current item has been altered.

ListChanged

ListChangedEventHandlerarrow-up-right Fired when the list changes or an item in the list changes.

MetaDataChanged

EventHandlerarrow-up-right Fired when the metadata of the List has changed.

Last updated

Was this helpful?