System.Windows.Forms.BindingSource: Method Members

The methods of System.Windows.Forms.BindingSource are listed below. For a list of all members, see the BindingSource Members list.

See Also: Inherited members from System.ComponentModel.Component

Public Methods

Add(object) : int

Adds an existing item to the internal list.

AddNew() : object

Adds a new item to the underlying list.

ApplySort(System.ComponentModel.ListSortDescriptionCollection)

Sorts the data source with the specified sort descriptions.

ApplySort(System.ComponentModel.PropertyDescriptor, System.ComponentModel.ListSortDirection)

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

CancelEdit()

Cancels the current edit operation.

Clear()

Removes all elements from the list.

Contains(object) : bool

Determines whether an object is an item in the list.

CopyTo(Array, int)

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

EndEdit()

Applies pending changes to the underlying data source.

Find(System.ComponentModel.PropertyDescriptor, object) : int

Searches for the index of the item that has the given property descriptor.

Find(string, object) : int

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

GetEnumerator() : IEnumerator

Retrieves an enumerator for the BindingSource.List.

GetItemProperties(System.ComponentModel.PropertyDescriptor[]) : System.ComponentModel.PropertyDescriptorCollection

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

GetListName(System.ComponentModel.PropertyDescriptor[]) : string

Gets the name of the list supplying data for the binding.

GetRelatedCurrencyManager(string) : CurrencyManager

Gets the related currency manager for the specified data member.

IndexOf(object) : int

Searches for the specified object and returns the index of the first occurrence within the entire list.

Insert(int, object)

Inserts an item into the list at the specified index.

MoveFirst()

Moves to the first item in the list.

MoveLast()

Moves to the last item in the list.

MoveNext()

Moves to the next item in the list.

MovePrevious()

Moves to the previous item in the list.

Remove(object)

Removes the specified item from the list.

RemoveAt(int)

Removes the item at the specified index in the list.

RemoveCurrent()

Removes the current item from the list.

RemoveFilter()

Removes the filter associated with the System.Windows.Forms.BindingSource.

RemoveSort()

Removes the sort associated with the System.Windows.Forms.BindingSource.

ResetAllowNew()

Reinitializes the BindingSource.AllowNew property.

ResetBindings(bool)

Causes a control bound to the System.Windows.Forms.BindingSource to reread all the items in the list and refresh their displayed values.

ResetCurrentItem()

Causes a control bound to the System.Windows.Forms.BindingSource to reread the currently selected item and refresh its displayed value.

ResetItem(int)

Causes a control bound to the System.Windows.Forms.BindingSource to reread the item at the specified index, and refresh its displayed value.

ResumeBinding()

Resumes data binding.

SuspendBinding()

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

Protected Methods