LogoLogo
HomeNewsSupportVideos
v2.5
v2.5
  • Welcome
  • What's New
  • Releases
  • Concepts
  • Themes
  • Extensions
  • Wisej.Web
    • General
      • Application
        • Application.FormCollection
        • Application.PageCollection
        • HashChangedEventArgs
        • HashChangedEventHandler
        • LicenseErrorEventArgs
        • LicenseErrorEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
      • Clipboard
      • Component
      • Control
        • Control.ControlCollection
        • ControlEventArgs
        • ControlEventHandler
        • DragEventArgs
        • DragEventHandler
        • HelpEventArgs
        • HelpEventHandler
        • KeyEventArgs
        • KeyEventHandler
        • KeyPressEventArgs
        • KeyPressEventHandler
        • LayoutEventArgs
        • LayoutEventHandler
        • MouseEventArgs
        • MouseEventHandler
        • PaintEventArgs
        • PaintEventHandler
        • PinchEventArgs
        • PinchEventHandler
        • PreviewKeyDownEventArgs
        • PreviewKeyDownEventHandler
        • QueryContinueDragEventArgs
        • QueryContinueDragEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
        • RotateEventArgs
        • RotateEventHandler
        • SwipeEventArgs
        • SwipeEventHandler
        • TouchEventArgs
        • TouchEventHandler
        • TrackEventArgs
        • TrackEventHandler
        • WidgetEventArgs
        • WidgetEventHandler
      • Cursor
      • Cursors
      • DataObject
      • Padding
      • Screen
    • Buttons
      • Button
        • MenuButtonItemClickedEventArgs
        • MenuButtonItemClickedEventHandler
      • ButtonBase
      • CheckBox
      • RadioButton
      • SplitButton
    • Common Dialogs
      • ColorDialog
      • CommonDialog
      • FileDialog
      • FileDialogLoadPathEventArgs
      • FileDialogLoadPathEventHandler
      • FileDialogRootCollection
      • FileDialogUI
      • FolderBrowserDialog
      • FolderBrowserDialogUI
      • OpenFileDialog
      • SaveFileDialog
    • Containers
      • Accordion
        • AccordionAction
        • AccordionCancelEventArgs
        • AccordionCancelEventHandler
        • AccordionEventArgs
        • AccordionEventHandler
        • AccordionPanel
      • ContainerControl
        • AcceleratorEventArgs
        • AcceleratorEventHandler
      • DataRepeater
        • DataRepeaterAddRemoveItemsCancelEventArgs
        • DataRepeaterAddRemoveItemsCancelEventHandler
        • DataRepeaterAddRemoveItemsEventArgs
        • DataRepeaterAddRemoveItemsEventHandler
        • DataRepeaterDataErrorEventArgs
        • DataRepeaterDataErrorEventHandler
        • DataRepeaterItem
        • DataRepeaterItemCloneEventHandler
        • DataRepeaterItemEventArgs
        • DataRepeaterItemEventHandler
        • DataRepeaterItemValueEventArgs
        • DataRepeaterItemValueEventHandler
        • DataRepeaterLayoutStyles
      • Desktop
        • DesktopTaskBarItem
        • DesktopTaskBarItemClickEventArgs
        • DesktopTaskBarItemClickEventHandler
        • DesktopTaskBarItemCollection
        • DesktopTaskBarItemControl
        • DesktopTaskBarItemDateTime
      • FlexLayoutPanel
        • FlexLayoutStyle
      • FlowLayoutPanel
        • FlowDirection
      • Form
        • CloseReason
        • FormBorderStyle
        • FormClosedEventArgs
        • FormClosedEventHandler
        • FormClosingEventArgs
        • FormClosingEventHandler
        • FormStartPosition
        • FormWindowState
        • MdiClient
        • MdiTabProperties
      • GroupBox
      • Page
      • Panel
      • ScrollableControl
        • ScrollEventArgs
        • ScrollEventHandler
      • SlideBar
      • SplitContainer
        • FixedPanel
        • SplitterCancelEventArgs
        • SplitterCancelEventHandler
        • SplitterEventArgs
        • SplitterEventHandler
        • SplitterPanel
      • StatusBar
        • StatusBarControl
        • StatusBarPanel
        • StatusBarPanelAutoSize
        • StatusBarPanelBorderStyle
        • StatusBarPanelClickEventArgs
        • StatusBarPanelClickEventHandler
      • TabControl
        • TabAlignment
        • TabControlAction
        • TabControlCancelEventArgs
        • TabControlCancelEventHandler
        • TabControlEventArgs
        • TabControlEventHandler
        • TabPage
        • TabSizeMode
      • TableLayoutPanel
        • ColumnStyle
        • RowStyle
        • TableLayoutColumnStyleCollection
        • TableLayoutPanelGrowStyle
        • TableLayoutRowStyleCollection
        • TableLayoutSettings
        • TableLayoutStyle
        • TableLayoutStyleCollection
      • ToolBar
        • ToolBar.ToolBarButtonCollection
        • ToolBarButton
        • ToolBarButtonClickEventArgs
        • ToolBarButtonClickEventHandler
        • ToolBarButtonSizeMode
        • ToolBarButtonStyle
        • ToolBarTextAlign
      • UserControl
      • UserPopup
    • Content
      • AspNetPanel
      • Canvas
      • HtmlPanel
        • HtmlPanelElementClickArgs
        • HtmlPanelElementClickHandler
      • IFramePanel
      • ImageList
        • ImageList.ImageCollection
      • Label
      • Line
      • LinkLabel
        • LinkArea
        • LinkLabelLinkClickedEventArgs
        • LinkLabelLinkClickedEventHandler
      • PdfViewer
      • PictureBox
      • ProgressBar
      • ScrollBar
        • HScrollBar
        • HScrollProperties
        • ScrollEventArgs
        • ScrollEventHandler
        • ScrollProperties
        • VScrollBar
        • VScrollProperties
      • Shape
      • Spacer
      • Upload
        • CaptureMode
        • UploadedEventArgs
        • UploadedEventHandler
        • UploadErrorEventArgs
        • UploadErrorEventHandler
        • UploadErrorType
        • UploadingEventArgs
        • UploadingEventHandler
        • UploadProgressEventArgs
        • UploadProgressEventHandler
      • WebBrowser
        • WebBrowserDocumentCompletedEventArgs
        • WebBrowserDocumentCompletedEventHandler
      • Widget
        • WebRequestEventArgs
        • WebRequestHandler
    • Data Binding
      • Binding
      • BindingCompleteContext
      • BindingCompleteEventArgs
      • BindingCompleteEventHandler
      • BindingCompleteState
      • BindingContext
      • BindingManagerBase
      • BindingManagerDataErrorEventArgs
      • BindingManagerDataErrorEventHandler
      • BindingMemberInfo
      • BindingNavigator
      • BindingsCollection
      • BindingSource
      • ControlBindingsCollection
      • ControlUpdateMode
      • ConvertEventArgs
      • ConvertEventHandler
      • CurrencyManager
      • DataSourceUpdateMode
      • IBindableComponent
      • ICurrencyManagerProvider
      • ItemChangedEventArgs
      • ItemChangedEventHandler
      • ListBindingConverter
      • ListBindingHelper
      • PropertyManager
    • Editors
      • CharacterCasing
      • ComponentTool
      • ComponentToolCollection
      • DateTimePicker
      • DomainUpDown
      • InputType
      • LabelWrapper
      • MaskedTextBox
      • MonthCalendar
        • DateRangeEventArgs
        • DateRangeEventHandler
        • SelectionRange
      • NumericUpDown
      • TagTextBox
        • TagTextBoxEventArgs
        • TagTextBoxEventHandler
        • TagTextBoxMousEventArgs
        • TagTextBoxMousEventHandler
        • TagTextBoxRenderEventArgs
        • TagTextBoxRenderEventHandler
      • TextBox
      • TextBoxBase
      • TextBoxMode
      • TextBoxType
      • TimeUpDown
        • TimeUpDownFormat
      • TrackBar
      • UpDownBase
    • Enumerations
      • AccessibleRole
      • AnchorStyles
      • Appearance
      • AutoComplete
      • AutoCompleteMode
      • AutoScaleMode
      • AutoSizeMode
      • AutoValidate
      • BorderStyle
      • BoundsSpecified
      • CheckState
      • ColorDepth
      • ComboBoxStyle
      • ControlStyles
      • DataFormats
      • DataFormats.Format
      • DateTimePickerFormat
      • Day
      • DialogResult
      • Display
      • DockStyle
      • DragAction
      • DragDropEffects
      • GetChildAtPointSkip
      • HeaderPosition
      • HorizontalAlignment
      • ImageLayout
      • ImagePosition
      • ImeMode
      • Keys
      • LabelPosition
      • LeftRightAlignment
      • LineStyle
      • LinkBehavior
      • MaskFormat
      • MouseButtons
      • ObjectFit
      • Orientation
      • PanelAutoShowMode
      • PictureBoxSizeMode
      • Placement
      • PlacementMode
      • Position
      • RightToLeft
      • ScrollBars
      • ScrollEventType
      • ScrollOrientation
      • SelectionMode
      • Shortcut
      • SizeType
      • SortOrder
      • TabOrderManagerDirection
      • TextDataFormat
      • TextImageRelation
      • TickStyle
      • ValidationConstraints
      • VerticalAlignment
    • Extenders
      • Animation
        • AnimationEventArgs
        • AnimationEventHandler
      • ErrorAnimationType
      • ErrorBlinkStyle
      • ErrorIconAlignment
      • ErrorProvider
      • HelpTip
      • JavaScript
      • Rotation
      • StyleSheet
      • TabOrderManager
      • ToolTip
      • ToolTipIcon
    • Interfaces
      • IButtonControl
      • IContainerControl
      • IDataObject
    • Lists & Grids
      • CheckedListBox
        • ItemCheckEventArgs
        • ItemCheckEventHandler
      • ComboBox
      • DataGridView
        • BaseCollection
        • DataGridView.HitTestInfo
        • DataGridView.HitTestType
        • DataGridViewAutoSizeColumnMode
        • DataGridViewAutoSizeColumnsMode
        • DataGridViewAutoSizeRowMode
        • DataGridViewAutoSizeRowsMode
        • DataGridViewBand
        • DataGridViewBindingCompleteEventArgs
        • DataGridViewBindingCompleteEventHandler
        • DataGridViewButtonCell
        • DataGridViewButtonColumn
        • DataGridViewCell
        • DataGridViewCellBorderStyle
        • DataGridViewCellCancelEventArgs
        • DataGridViewCellCancelEventHandler
        • DataGridViewCellCollection
        • DataGridViewCellContextMenuNeededEventArgs
        • DataGridViewCellContextMenuNeededEventHandler
        • DataGridViewCellErrorTextNeededEventArgs
        • DataGridViewCellErrorTextNeededEventHandler
        • DataGridViewCellEventArgs
        • DataGridViewCellEventHandler
        • DataGridViewCellFormattingEventArgs
        • DataGridViewCellFormattingEventHandler
        • DataGridViewCellMouseEventArgs
        • DataGridViewCellMouseEventHandler
        • DataGridViewCellPaintEventArgs
        • DataGridViewCellPaintEventHandler
        • DataGridViewCellParsingEventArgs
        • DataGridViewCellParsingEventHandler
        • DataGridViewCellStateChangedEventArgs
        • DataGridViewCellStateChangedEventHandler
        • DataGridViewCellStyle
        • DataGridViewCellStyleContentChangedEventArgs
        • DataGridViewCellStyleContentChangedEventHandler
        • DataGridViewCellStyleScopes
        • DataGridViewCellToolTipTextNeededEventArgs
        • DataGridViewCellToolTipTextNeededEventHandler
        • DataGridViewCellValidatingEventArgs
        • DataGridViewCellValidatingEventHandler
        • DataGridViewCellValueEventArgs
        • DataGridViewCellValueEventHandler
        • DataGridViewCheckBoxCell
        • DataGridViewCheckBoxColumn
        • DataGridViewChildRowCollection
        • DataGridViewClipboardCopyMode
        • DataGridViewCollectionChangeEventArgs
        • DataGridViewColumn
        • DataGridViewColumnCollection
        • DataGridViewColumnEventArgs
        • DataGridViewColumnEventHandler
        • DataGridViewColumnHeaderCell
        • DataGridViewColumnHeadersHeightSizeMode
        • DataGridViewColumnSortMode
        • DataGridViewColumnsSortMode
        • DataGridViewColumnStateChangedEventArgs
        • DataGridViewColumnStateChangedEventHandler
        • DataGridViewComboBoxCell
        • DataGridViewComboBoxColumn
        • DataGridViewComboBoxEditingControl
        • DataGridViewContentAlignment
        • DataGridViewDataErrorEventArgs
        • DataGridViewDataErrorEventHandler
        • DataGridViewDataReadEventHandler
        • DataGridViewDataUpdatedEventArgs
        • DataGridViewDataUpdatedEventHandler
        • DataGridViewDateTimePickerCell
        • DataGridViewDateTimePickerColumn
        • DataGridViewDateTimePickerEditingControl
        • DataGridViewEditingControlShowingEventArgs
        • DataGridViewEditingControlShowingEventHandler
        • DataGridViewEditMode
        • DataGridViewElement
        • DataGridViewElementStates
        • DataGridViewHeaderCell
        • DataGridViewImageCell
        • DataGridViewImageCellLayout
        • DataGridViewImageColumn
        • DataGridViewLinkCell
        • DataGridViewLinkColumn
        • DataGridViewMaskedTextBoxCell
        • DataGridViewMaskedTextBoxColumn
        • DataGridViewMaskedTextBoxEditingControl
        • DataGridViewNumericUpDownCell
        • DataGridViewNumericUpDownColumn
        • DataGridViewNumericUpDownEditingControl
        • DataGridViewRow
        • DataGridViewRowCancelEventArgs
        • DataGridViewRowCancelEventHandler
        • DataGridViewRowCollection
        • DataGridViewRowErrorTextNeededEventArgs
        • DataGridViewRowErrorTextNeededEventHandler
        • DataGridViewRowEventArgs
        • DataGridViewRowEventHandler
        • DataGridViewRowHeaderCell
        • DataGridViewRowHeadersWidthSizeMode
        • DataGridViewRowHeightInfoNeededEventArgs
        • DataGridViewRowHeightInfoNeededEventHandler
        • DataGridViewRowsAddedEventArgs
        • DataGridViewRowsAddedEventHandler
        • DataGridViewRowsRemovedEventArgs
        • DataGridViewRowsRemovedEventHandler
        • DataGridViewRowStateChangedEventArgs
        • DataGridViewRowStateChangedEventHandler
        • DataGridViewSelectedCellCollection
        • DataGridViewSelectedColumnCollection
        • DataGridViewSelectedRowCollection
        • DataGridViewSelectionMode
        • DataGridViewSortCompareEventArgs
        • DataGridViewSortCompareEventHandler
        • DataGridViewSortSelectionMode
        • DataGridViewTextBoxCell
        • DataGridViewTextBoxColumn
        • DataGridViewTextBoxEditingControl
        • DataGridViewToolClickEventHandler
        • DataGridViewTriState
        • IDataGridViewEditingControl
        • InputType
        • ScrollEventArgs
        • ScrollEventHandler
        • TextBoxMode
        • TextBoxType
      • ListBox
      • ListControl
        • ListControlConvertEventArgs
        • ListControlConvertEventHandler
      • ListView
        • CacheVirtualItemsEventArgs
        • CacheVirtualItemsEventHandler
        • ColumnClickEventArgs
        • ColumnClickEventHandler
        • ColumnHeader
        • ColumnHeaderAutoResizeStyle
        • ColumnHeaderStyle
        • ColumnReorderedEventArgs
        • ColumnReorderedEventHandler
        • ColumnWidthChangedEventArgs
        • ColumnWidthChangedEventHandler
        • GridLineStyle
        • ImageColumnHeader
        • ItemCheckedEventArgs
        • ItemCheckedEventHandler
        • ItemClickEventArgs
        • ItemClickEventHandler
        • ItemMouseHoverEventArgs
        • ItemMouseHoverEventHandler
        • ItemSelectionChangedEventArgs
        • ItemSelectionChangedEventHandler
        • LabelEditEventArgs
        • LabelEditEventHandler
        • ListView.CheckedIndexCollection
        • ListView.CheckedListViewItemCollection
        • ListView.ColumnHeaderCollection
        • ListView.ListViewItemCollection
        • ListView.SelectedIndexCollection
        • ListView.SelectedListViewItemCollection
        • ListViewBindingCompleteEventArgs
        • ListViewBindingCompleteEventEventHandler
        • ListViewDataUpdatedEventArgs
        • ListViewDataUpdatedEventHandler
        • ListViewItem
        • ListViewItem.ListViewSubItem
        • ListViewItem.ListViewSubItemCollection
        • ListViewItemDragEventArgs
        • ListViewItemDragEventHandler
        • ListViewItemStates
        • ListViewVirtualItemsSelectionRangeChangedEventArgs
        • ListViewVirtualItemsSelectionRangeChangedEventHandler
        • RetrieveVirtualItemEventArgs
        • RetrieveVirtualItemEventHandler
        • SearchForVirtualItemEventArgs
        • SearchForVirtualItemEventHandler
        • View
      • ListViewComboBox
      • PropertyGrid
        • GridItem
        • GridItemCollection
        • GridItemType
        • PropertySort
        • PropertyValueChangedEventArgs
        • PropertyValueChangedEventHandler
        • PropertyValueDataErrorEventArgs
        • PropertyValueDataErrorEventHandler
        • PropertyValueFormattingEventArgs
        • PropertyValueFormattingEventHandler
        • SelectedGridItemBeginEditEventArgs
        • SelectedGridItemBeginEditEventHandler
        • SelectedGridItemChangedEventArgs
        • SelectedGridItemChangedEventHandler
        • SelectedGridItemEndEditEventArgs
        • SelectedGridItemEndEditEventHandler
      • TreeView
        • ItemDragEventArgs
        • ItemDragEventHandler
        • NodeLabelEditEventArgs
        • NodeLabelEditEventHandler
        • TreeNode
        • TreeNodeCollection
        • TreeNodeMouseClickEventArgs
        • TreeNodeMouseClickEventHandler
        • TreeNodeMouseHoverEventArgs
        • TreeNodeMouseHoverEventHandler
        • TreeViewAction
        • TreeViewCancelEventArgs
        • TreeViewCancelEventHandler
        • TreeViewEventArgs
        • TreeViewEventHandler
        • TreeViewNodeDragEventArgs
        • TreeViewNodeDragEventHandler
      • TreeViewComboBox
      • UserComboBox
    • Media
      • Audio
      • FlashPlayer
      • Media
      • Video
    • Menus
      • CheckedMenuItem
      • ContextMenu
      • LinkMenuItem
      • MainMenu
      • Menu
      • Menu.MenuItemCollection
      • MenuBar
      • MenuItem
      • MenuItemEventArgs
      • MenuItemEventHandler
      • MenuItemSizeMode
      • MenuMerge
    • Notifications
      • AlertBox
        • MessageBoxIcon
      • MessageBox
        • MessageBoxButtons
        • MessageBoxDefaultButton
        • MessageBoxIcon
      • Toast
    • Other Components
      • Timer
  • Wisej.Base
    • General
      • Component
      • Cookie
      • CookieCollection
      • PostbackPropertyAttribute
      • TextUtils
    • Responsive
      • ResponsiveProfile
      • ResponsiveProfileCollection
      • ResponsivePropertyAttribute
  • Wisej.Core
    • General
      • BrowserStorage
      • ClientBrowser
      • ClientProfile
      • ClientTheme
      • CookieStorage
      • FileSystemProvider
      • HealthCheck
      • IEventFilter
      • IFileSystemProvider
      • LocalStorage
      • MimeTypes
      • SessionStorage
      • SynchronizedLinkedList<T>
      • SynchronizedList<T>
      • WebMethodAttribute
      • WisejEventArgs
        • WisejEventArgs.KeyboardInfo
        • WisejEventArgs.PointerInfo
      • WisejResourcesAttribute
      • WisejSerializer
      • WisejSerializerOptions
    • Interfaces
      • IWisejComponent
      • IWisejControl
      • IWisejDataStore
      • IWisejEditorService
      • IWisejExtenderProvider
      • IWisejHandler
      • IWisejSerializable
      • IWisejWindow
  • Wisej.Web.VisualBasic
    • Extensions
      • Interaction
      • MsgBoxResult
      • MsgBoxStyle
  • System
    • Extensions
      • DateTimeExtensions
      • FontExtensions
      • JSON
      • StringExtensions
Powered by GitBook
On this page
  • Constructors
  • BindingSource()
  • BindingSource(container)
  • BindingSource(dataSource, dataMember)
  • Properties
  • AllowEdit
  • AllowNew
  • AllowRemove
  • Count
  • CurrencyManager
  • Current
  • DataMember
  • DataSource
  • Filter
  • IsBindingSuspended
  • IsFixedSize
  • IsReadOnly
  • IsSorted
  • IsSynchronized
  • Item(index)
  • List
  • Position
  • RaiseListChangedEvents
  • RefreshValueOnChange
  • Sort
  • SortDescriptions
  • SortDirection
  • SortProperty
  • SupportsAdvancedSorting
  • SupportsChangeNotification
  • SupportsFiltering
  • SupportsSearching
  • SupportsSorting
  • SyncRoot
  • Methods
  • Add(item)
  • AddNew()
  • ApplySort(property, sort)
  • ApplySort(sorts)
  • CancelEdit()
  • Clear()
  • Contains(item)
  • CopyTo(array, index)
  • EndEdit()
  • Find(propertyName, value)
  • Find(property, value)
  • GetEnumerator()
  • GetItemProperties(listAccessors)
  • GetListName(listAccessors)
  • GetRelatedCurrencyManager(dataMember)
  • IndexOf(item)
  • Insert(index, item)
  • MoveFirst()
  • MoveLast()
  • MoveNext()
  • MovePrevious()
  • Remove(item)
  • RemoveAt(index)
  • RemoveCurrent()
  • RemoveFilter()
  • RemoveSort()
  • ResetBindings(metadataChanged)
  • ResetCurrentItem()
  • ResetItem(itemIndex)
  • ResumeBinding()
  • SuspendBinding()
  • Events
  • AddingNew
  • BindingComplete
  • CurrentChanged
  • CurrentItemChanged
  • DataError
  • DataMemberChanged
  • DataSourceChanged
  • ListChanged
  • PositionChanged
  • Implements

Was this helpful?

Export as PDF
  1. Wisej.Web
  2. Data Binding

BindingSource

Wisej.Web.BindingSource

Last updated 2 years ago

Was this helpful?

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

Encapsulates the data source for a data-bound component.

public class BindingSource : BindingSource, ICurrencyManagerProvider
Public Class BindingSource
    Inherits BindingSource
    Implements ICurrencyManagerProvider

Constructors

BindingSource()

Initializes a new instance of the class to the default property values.

BindingSource(container)

Initializes a new instance of the class and adds the to the specified container.

Name
Type
Description

container

BindingSource(dataSource, dataMember)

Initializes a new instance of the class with the specified data source and data member.

Name
Type
Description

dataSource

dataMember

The specific column or list name within the data source to bind to.

Properties

Throws:

Throws:

  • Negative values are treated as 0.

This option fixes a long standing "feature" of the default BindingSource where the property that is the source of a value change is not refreshed automatically after it updates the bound data source. In a scenario where the data source "transforms" the value received from a data-bound control, the source property is not updated while all other bound properties are.

Methods

Parameter
Type
Description

item

Sorts the data source using the specified property descriptor and sort direction.

Parameter
Type
Description

property

sort

Sorts the data source with the specified sort descriptions.

Parameter
Type
Description

sorts

Cancels the current edit operation.

Removes all elements from the list.

Parameter
Type
Description

item

Parameter
Type
Description

array

The destination array.

index

The index in the destination array at which to start the copy.

Applies pending changes to the underlying data source.

Returns the index of the item in the list with the specified propertyName and value .

Parameter
Type
Description

propertyName

The name of the property to search.

value

The value of the item with the specified propertyName to find.

Throws:

Searches for the index of the that has the given value in the specified property .

Parameter
Type
Description

property

value

The value of the property to match.

Throws:

Parameter
Type
Description

listAccessors

Returns the name of the list supplying data for the binding operations.

Parameter
Type
Description

listAccessors

Parameter
Type
Description

dataMember

The name of column or list, within the data source to retrieve the currency manager for.

Parameter
Type
Description

item

item to locate.

Parameter
Type
Description

index

Index at which to insert the item.

item

Item to insert, it can be null.

Throws:

Parameter
Type
Description

item

Item to remove.

Parameter
Type
Description

index

Index of the item to remove.

Throws:

Parameter
Type
Description

metadataChanged

true if the schema has changed; false if only the data has changed.

Parameter
Type
Description

itemIndex

The index of the item that has changed.

Resumes data binding.

Suspends data binding to prevent changes from updating the data-bound data source.

Events

Implements

Name
Description

Provides custom binding management for components.

The to add the current to.

The data source for the .

AllowEdit

: Returns whether items in the underlying list can be edited.

AllowNew

: Returns or sets whether the method can be used to add items to the list.

This property is set to true when the underlying list represented by the property has a fixed size or is read-only.

The property is set to true and the event is not handled when the underlying list type does not have a default constructor.

AllowRemove

: Returns whether the items can be removed from the underlying list.

Count

: Returns the total number of items in the underlying list, filtered using the current value.

CurrencyManager

: Returns the currency manager associated with this .

Current

: Returns the current item in the list.

Use the property to access the current item, but use the property to get the entire list. To determine the type of the current object, use the , or methods. To change the current item, set the property to a new integral value, or use one of the navigation methods such as .

DataMember

: Returns or sets the list in the data source to which the connector currently binds to.

If the contains multiple lists (or tables) of data, you should set the property to the name of one of the sources. Setting this property raises the event

DataSource

: Returns or sets the data source that the connector binds to.

The property can be set to a number of data sources, including types, objects, and lists of types. The resulting data source will be exposed as a list. The following table shows some of the common data sources and the resulting list evaluation.

| DataSource | List Result | | :--- | | null | An empty of objects. Adding an item sets the list to the type of the added item. | | null with set | Not supported, raises . | | Non-list type or object of type "T" | Empty of type "T". | | instance | containing the array elements. | | instance | An containing the items. | | List instance containing type "T" | instance containing type "T". |

In addition, can be set to other list types such as and and the will handle them appropriately. In this case, the type contained in the list should have a parameterless constructor. When setting a data source, if the supplied reference contains more than one list or table, you must set the property to a string that specifies the list to bind to. Setting this property raises the event.

Filter

: Returns or sets the expression used to filter the items in the underlying .

Typically used in complex data-binding scenarios, the property allows you to view a subset of the . Only underlying lists that implement the interface support filtering. When is not null, the passes this property to the underlying list. If you set this property during object initialization, the call will be deferred until after initialization is complete. To form a filter value, specify the name of a column followed by an operator and a value to filter on. The accepted filter syntax depends on the underlying data source. If the underlying data source is a , , or , you can specify Boolean expressions using the syntax documented for the DataColumn.Expression property. The value of the Filter property affects the value of the property. Additionally, the Filter value will persist when the data source changes. To stop filtering the , call the RemoveFilter method.

IsBindingSuspended

: Returns whether data binding is suspended.

IsFixedSize

: Returns whether the underlying has a fixed size.

IsReadOnly

: Return whether the underlying is read-only.

IsSorted

: Returns whether the items in the underlying are sorted.

IsSynchronized

: Returns whether access to the collection is synchronized (thread safe).

Item(index)

: Returns or sets the list element at the specified index in the underlying .

index is less than zero or is equal to or greater than .

List

: Returns the underlying data list.

The class uniformly handles different data sources. Ideally the property should be set to a general . However, sometimes it may be necessary to cast this property to a more specific type. The following table shows the underlying list type, which depends on the type or value of the data source.

| DataSource Type | Underlying List Description | | :--- | | and are null | An empty . | | is null, but is not null | None; an attempt to get the List will throw an . | | An instance | An . | | An instance | The return value from a call to the GetList() method of this instance. | | An instance | An . | | An instance | An . | | A non- instance of type "T" | A with one element. | | An instance | An with one element. | | An | An with the elements copied over. | | The type with of item type "T" | A . | | A Type that represents an or | An instance created by a call to the CreateInstance(Type) method of the class. A may be thrown. | | The type with of item type "T" or a non- type | A | | The type | None; an attempt to get the will throw an . |

If the type retrieved is the interface, the underlying collection may be more complex, such as an or class.

Position

: Returns or sets the index of the current item in the underlying .

When setting the property, out-of-range values are treated in the following manner:

Values greater than or equal to are treated as Count minus 1.

Changing the property will adjust the property.

RaiseListChangedEvents

: Returns or sets a value indicating whether events should be raised.

When the property is false, it suspends the raising of the events. This event indicates that the bound list has been modified in some way, including adding, deleting, inserting, or modifying items.

RefreshValueOnChange

: Enables the automatic refresh of the source property after a data-bound value has been updated in the data source.

Sort

: Returns or sets the column names used for sorting, and the sort order for viewing the rows in the data source.

The property is a case-sensitive string that specifies the column names used to sort the rows, along with the . Columns are sorted ascending by default. Multiple columns can be separated by commas, such as "State, ZipCode DESC". To support sorting, the underlying must implement the or interfaces. This capability can be queried through the property. Multicolumn sorting is available when the property is true. Setting the Sort property will change the internal list depending on its type:

If the list is of type , the and properties are set in the internal list.

If the list is of type , the property is set.

The internal list's sort properties are only changed when the sort string is not null. The get accessor for this property will not retrieve the sort value of the internal list; instead, it will return the set accessor value. The value of the property will persist when the data source changes.

SortDescriptions

: Returns the collection of sort descriptions applied to the data source.

If the data source is not an , the property always returns null.

SortDirection

: Returns the direction the items in the underlying are sorted.

If the data source is not an , the property always returns .

SortProperty

: Returns the that is being used for sorting the underlying .

If the data source is not an , the property always returns null.

SupportsAdvancedSorting

: Returns whether the data source supports multi-column sorting.

If the data source is not an , the property always returns false.

SupportsChangeNotification

: Return whether the data source supports change notification.

SupportsFiltering

: Returns whether the data source supports filtering.

If the data source is not an , the property always returns false.

SupportsSearching

: Returns whether the data source supports searching with the method.

If the data source is not an , the property always returns false.

SupportsSorting

: Returns whether the data source supports sorting.

If the data source is not an , the property always returns false.

SyncRoot

: Returns an object used to synchronize access to the underlying .

Add(item)

Adds an existing item to the underlying .

Item to add the underlying .

Returns: . The index at which the item was added to the underlying .

AddNew()

Adds a new item to the underlying .

Returns: . The object that was created and added to the underlying .

ApplySort(property, sort)

A that describes the property by which to sort the data source.

A indicating how the list should be sorted.

The implements single column sorting using a to indicate a property to sort by and a indicating whether the property contents should be sorted in ascending or descending order. Throws:

The data source is not an .

ApplySort(sorts)

A containing the sort descriptions to apply to the data source.

implements multi-column sorting as a set of property descriptor-direction pairs. Throws:

The data source is not an .

CancelEdit()

Clear()

Contains(item)

Determines whether the item is present in he underlying .

Item to locate in the underlying .

Returns: . true if the item is found in the .

CopyTo(array, index)

Copies the contents of the to the specified array , starting at the specified index value.

EndEdit()

When the method is called, all pending changes are applied to the underlying data source. This method has no effect unless the objects contained by the data source implement the interface. If the objects do not implement the interface, changes to the data are copied to the underlying data source immediately after each change. This method raises the event.

Find(propertyName, value)

Returns: . The zero-based index of the item with the specified propertyName and value .

The underlying list is not a with searching functionality implemented.

propertyName does not match a property in the list.

Find(property, value)

The to search.

Returns: . The index of the item that has the given value .

propertyName does not match a property in the list.

GetEnumerator()

Retrieves an enumerator for the underlying .

Returns: . An for the .

GetItemProperties(listAccessors)

Retrieves an array of objects representing the bindable properties of the data source list type.

An array of objects to find in the type.

Returns: . An array of objects that represents the properties on this list type used to bind data.

GetListName(listAccessors)

An array of objects to find in the list as bindable.

Returns: . The name of the list supplying the data for binding operations.

GetRelatedCurrencyManager(dataMember)

Returns the related for the specified data member.

Returns: . The related for the specified data member.

IndexOf(item)

Returns the index of the specified item in the underlying .

Returns: . The index of the first occurrence of item in the .

Insert(index, item)

Inserts an item into the at the specified index .

index is less than zero or greater than .

The list is read-only or has a fixed size.

MoveFirst()

Moves the current position to the first item in the .

MoveLast()

Moves the current position to the last item in the .

MoveNext()

Moves the current position to the next item in the .

MovePrevious()

Moves the current position to the previous item in the .

Remove(item)

Removes the specified item from the .

RemoveAt(index)

Removes the item at the specified index from the .

RemoveCurrent()

Removes the current item from the .

RemoveFilter()

Removes the filter associated with this

RemoveSort()

Removes the sort information associated with this .

The underlying data source does not support sorting.

ResetBindings(metadataChanged)

Causes a control bound to this to re-read all the items and refresh their displayed value.

ResetCurrentItem()

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

ResetItem(itemIndex)

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

ResumeBinding()

SuspendBinding()

AddingNew

Fired before an item is added to the underlying .

BindingComplete

Fired when all the clients have been bound to this .

CurrentChanged

Occurs when the currently bound item changes.

CurrentItemChanged

Occurs when a property value of the property has changed.

DataError

Fired when a currency-related exception is silently handled by the .

DataMemberChanged

Fired when the property value has changed.

DataSourceChanged

Fired when the property value has changed.

ListChanged

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

PositionChanged

Fired after the value of the property has changed.

Boolean
Boolean
CurrencyManager
BindingSource
Object
String
Object
Boolean
Boolean
IList
IList
ArrayList
DataView
Boolean
String
IBindingList
SortProperty
SortDirection
IBindingListView
SortDescriptions
ListSortDescriptionCollection
Boolean
Boolean
Boolean
Boolean
IBindingList
PropertyDescriptor
ListSortDirection
NotSupportedException
IBindingList
IBindingListView
NotSupportedException
IBindingListView
Int32
InvalidOperationException
IBindingList
ArgumentException
Int32
ArgumentException
PropertyDescriptor
PropertyDescriptorCollection
PropertyDescriptor
String
CurrencyManager
CurrencyManager
CurrencyManager
NotSupportedException
BindingSource
BindingSource
NotSupportedException
BindingSource
BindingSource
BindingSource
BindingCompleteEventHandler
BindingSource
EventHandler
BindingManagerDataErrorEventHandler
BindingSource
Boolean
AddNew
InvalidOperationException
List
MissingMethodException
AddingNew
Int32
Filter
GetType
ToString
Current
List
Position
MoveNext
DataSource
DataMember
DataMemberChanged
DataSource
IBindingList
ArgumentException
IBindingList
Array
IBindingList
IEnumerable
IBindingList
IEnumerable
IBindingList
DataMember
IListSource
ITypedList
BindingSource
DataSource
DataMember
DataSourceChanged
String
List
IBindingListView
BindingSource
DataSet
DataTable
DataView
Filter
DataSource
Filter
Count
DataSource
Boolean
List
Boolean
List
Boolean
List
Object
List
ArgumentOutOfRangeException
Count
BindingSource
IList
List
ArrayList
ArgumentException
Array
Array
IListSource
IListSource
IBindingList
IBindingList
IList
IList
IList
BindingList
ICustomTypeDescriptor
ArrayList
IEnumerable
ArrayList
Array
BindingList
IListSource
ITypedList
Activator
NotSupportedException
IList
IList
BindingList
ICustomTypeDescriptor
NotSupportedException
DataSource
DataMember
DataSource
DataMember
DataMember
DataMember
List
Int32
List
Position
Count
Position
Current
Boolean
ListChanged
RaiseListChangedEvents
ListChanged
IBindingList
IBindingListView
Sort
SortDirection
List
SupportsSorting
SupportsAdvancedSorting
Sort
IBindingListView
SortDescriptions
ListSortDirection
List
IBindingList
Ascending
SortDirection
PropertyDescriptor
PropertyDescriptor
List
IBindingList
SortProperty
IBindingListView
SupportsAdvancedSorting
IBindingList
SupportsFiltering
Boolean
Find
IBindingList
SupportsSearching
IBindingList
SupportsSorting
Object
List
List
Int32
List
List
Object
List
List
Boolean
List
List
IEditableObject
IEditableObject
EndEdit
ListChanged
List
IEnumerator
IEnumerator
List
List
Int32
List
List
ArgumentOutOfRangeException
Count
List
List
List
List
List
List
List
AddingNewEventHandler
List
EventHandler
Current
EventHandler
DataMember
EventHandler
DataSource
ListChangedEventHandler
List
EventHandler
Position
IContainer
IContainer
BindingSource
Object
BindingSource
String
Object
PropertyDescriptor
PropertyDescriptor
ListSortDirection
ListSortDescription
ListSortDescriptionCollection
ListSortDescriptionCollection
Object
Array
Int32
String
Object
PropertyDescriptor
PropertyDescriptor
Object
PropertyDescriptor[]
PropertyDescriptor[]
PropertyDescriptor
String
Object
Int32
Object
Object
Int32
Boolean
Int32
ICurrencyManagerProvider
List
List
PropertyDescriptor
List
BindingSource
BindingSource
BindingSource
BindingSource