BindingSource Methods
.NET Framework 4.5
The BindingSource type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds an existing item to the internal list. |
|
AddNew | Adds a new item to the underlying list. |
|
ApplySort(ListSortDescriptionCollection) | Sorts the data source with the specified sort descriptions. |
|
ApplySort(PropertyDescriptor, 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 | Determines whether an object is an item in the list. |
|
CopyTo | Copies the contents of the List to the specified array, starting at the specified index value. |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
Dispose() | Releases all resources used by the Component. (Inherited from Component.) |
|
Dispose(Boolean) | Releases the unmanaged resources used by the BindingSource and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).) |
|
EndEdit | Applies pending changes to the underlying data source. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
|
Find(PropertyDescriptor, Object) | Searches for the index of the item that has the given property descriptor. |
|
Find(String, Object) | Returns the index of the item in the list with the specified property name and value. |
|
GetEnumerator | Retrieves an enumerator for the List. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetItemProperties | Retrieves an array of PropertyDescriptor objects representing the bindable properties of the data source list type. |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetListName | Gets the name of the list supplying data for the binding. |
|
GetRelatedCurrencyManager | Gets the related currency manager for the specified data member. |
|
GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Searches for the specified object and returns the index of the first occurrence within the entire list. |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
Insert | Inserts an item into the list at the specified index. |
|
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
|
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. |
|
OnAddingNew | Raises the AddingNew event. |
|
OnBindingComplete | Raises the BindingComplete event. |
|
OnCurrentChanged | Raises the CurrentChanged event. |
|
OnCurrentItemChanged | Raises the CurrentItemChanged event. |
|
OnDataError | Raises the DataError event. |
|
OnDataMemberChanged | Raises the DataMemberChanged event. |
|
OnDataSourceChanged | Raises the DataSourceChanged event. |
|
OnListChanged | Raises the ListChanged event. |
|
OnPositionChanged | Raises the PositionChanged event. |
|
Remove | Removes the specified item from the list. |
|
RemoveAt | 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 BindingSource. |
|
RemoveSort | Removes the sort associated with the BindingSource. |
|
ResetAllowNew | Infrastructure. Reinitializes the AllowNew property. |
|
ResetBindings | Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. |
|
ResetCurrentItem | Causes a control bound to the BindingSource to reread the currently selected item and refresh its displayed value. |
|
ResetItem | Causes a control bound to the 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. |
|
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
IBindingList.AddIndex | Adds the PropertyDescriptor to the indexes used for searching. |
|
IBindingList.RemoveIndex | Removes the System.ComponentModel.PropertyDescriptor from the indexes used for searching. |
|
ICancelAddNew.CancelNew | Discards a pending new item from the collection. |
|
ICancelAddNew.EndNew | Commits a pending new item to the collection. |
|
ISupportInitialize.BeginInit | Signals the BindingSource that initialization is starting. |
|
ISupportInitialize.EndInit | Signals the BindingSource that initialization is complete. |