All pages
Powered by GitBook
1 of 1

Loading...

CurrencyManager

Wisej.Web.CurrencyManager

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

  • BindingManagerBase

    • CurrencyManager

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

Properties

Count

: Returns the number of items in the list.

Current

: Returns the current item in the list.

List

: Returns the list for this .

Position

: Returns or sets the current position within the list.

ShouldBind

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

Methods

AddNew()

Adds a new item to the underlying list.

Throws:

  • The underlying data source does not implement , 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 .

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

ResumeBinding()

Resumes data binding.

SuspendBinding()

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

Events

ItemChanged

Fired when the current item has been altered.

ListChanged

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

MetaDataChanged

Fired when the metadata of the has changed.

itemIndex

Int32

The index of the item that has changed.

Public Class CurrencyManager
    Inherits BindingManagerBase
Int32
Object
IList
CurrencyManager
Int32
Boolean
SuspendBinding
ResumeBinding
NotSupportedException
IBindingList
DataView
ItemChangedEventHandler
ListChangedEventHandler
EventHandler
List
public class CurrencyManager : BindingManagerBase