Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

BindingSource Methods

The BindingSource type exposes the following members.

  Name Description
Public method Add Adds an existing item to the internal list.
Public method AddNew Adds a new item to the underlying list.
Public method ApplySort(ListSortDescriptionCollection) Sorts the data source with the specified sort descriptions.
Public method ApplySort(PropertyDescriptor, ListSortDirection) Sorts the data source using the specified property descriptor and sort direction.
Public method CancelEdit Cancels the current edit operation.
Public method Clear Removes all elements from the list.
Public method Contains Determines whether an object is an item in the list.
Public method CopyTo Copies the contents of the List to the specified array, starting at the specified index value.
Public method 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.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the BindingSource and optionally releases the managed resources. (Overrides Component.Dispose(Boolean).)
Public method EndEdit Applies pending changes to the underlying data source.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Find(PropertyDescriptor, Object) Searches for the index of the item that has the given property descriptor.
Public method Find(String, Object) Returns the index of the item in the list with the specified property name and value.
Public method GetEnumerator Retrieves an enumerator for the List.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetItemProperties Retrieves an array of PropertyDescriptor objects representing the bindable properties of the data source list type.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetListName Gets the name of the list supplying data for the binding.
Public method GetRelatedCurrencyManager Gets the related currency manager for the specified data member.
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Searches for the specified object and returns the index of the first occurrence within the entire list.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Insert Inserts an item into the list at the specified index.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method MoveFirst Moves to the first item in the list.
Public method MoveLast Moves to the last item in the list.
Public method MoveNext Moves to the next item in the list.
Public method MovePrevious Moves to the previous item in the list.
Protected method OnAddingNew Raises the AddingNew event.
Protected method OnBindingComplete Raises the BindingComplete event.
Protected method OnCurrentChanged Raises the CurrentChanged event.
Protected method OnCurrentItemChanged Raises the CurrentItemChanged event.
Protected method OnDataError Raises the DataError event.
Protected method OnDataMemberChanged Raises the DataMemberChanged event.
Protected method OnDataSourceChanged Raises the DataSourceChanged event.
Protected method OnListChanged Raises the ListChanged event.
Protected method OnPositionChanged Raises the PositionChanged event.
Public method Remove Removes the specified item from the list.
Public method RemoveAt Removes the item at the specified index in the list.
Public method RemoveCurrent Removes the current item from the list.
Public method RemoveFilter Removes the filter associated with the BindingSource.
Public method RemoveSort Removes the sort associated with the BindingSource.
Public method ResetAllowNew Infrastructure. Reinitializes the AllowNew property.
Public method ResetBindings Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.
Public method ResetCurrentItem Causes a control bound to the BindingSource to reread the currently selected item and refresh its displayed value.
Public method ResetItem Causes a control bound to the BindingSource to reread the item at the specified index, and refresh its displayed value.
Public method ResumeBinding Resumes data binding.
Public method SuspendBinding Suspends data binding to prevent changes from updating the bound data source.
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  Name Description
Explicit interface implemetation Private method IBindingList.AddIndex Adds the PropertyDescriptor to the indexes used for searching.
Explicit interface implemetation Private method IBindingList.RemoveIndex Removes the System.ComponentModel.PropertyDescriptor from the indexes used for searching.
Explicit interface implemetation Private method ICancelAddNew.CancelNew Discards a pending new item from the collection.
Explicit interface implemetation Private method ICancelAddNew.EndNew Commits a pending new item to the collection.
Explicit interface implemetation Private method ISupportInitialize.BeginInit Signals the BindingSource that initialization is starting.
Explicit interface implemetation Private method ISupportInitialize.EndInit Signals the BindingSource that initialization is complete.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.