System.ComponentModel.BindingList<T> Members

The members of System.ComponentModel.BindingList<T> are listed below.

See Also: Inherited members from System.Collections.ObjectModel.Collection<T>

Public Constructors

Initializes a new instance of the System.ComponentModel.BindingList`1 class using default values.

Documentation for this section has not yet been entered.

Public Properties

AllowEditbool.

Gets or sets a value indicating whether items in the list can be edited.

AllowNewbool.

Gets or sets a value indicating whether you can add items to the list using the BindingList`1.AddNew method.

AllowRemovebool.

Gets or sets a value indicating whether you can remove items from the collection.

RaiseListChangedEventsbool.

Gets or sets a value indicating whether adding or removing items within the list raises BindingList`1.ListChanged events.

Protected Properties

[read-only]
IsSortedCorebool.

Gets a value indicating whether the list is sorted.

[read-only]
SortDirectionCoreListSortDirection.

Gets the direction the list is sorted.

[read-only]
SortPropertyCorePropertyDescriptor.

Gets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null.

[read-only]
SupportsChangeNotificationCorebool.

Gets a value indicating whether BindingList`1.ListChanged events are enabled.

[read-only]
SupportsSearchingCorebool.

Gets a value indicating whether the list supports searching.

[read-only]
SupportsSortingCorebool.

Gets a value indicating whether the list supports sorting.

Public Methods

AddNew() : T

Adds a new item to the collection.

CancelNew(int)

Discards a pending new item.

EndNew(int)

Commits a pending new item to the collection.

ResetBindings()

Raises a BindingList`1.ListChanged event of type ListChangedType.Reset.

ResetItem(int)

Raises a BindingList`1.ListChanged event of type ListChangedType.ItemChanged for the item at the specified position.

Protected Methods

AddNewCore() : object

Adds a new item to the end of the collection.

ApplySortCore(PropertyDescriptor, ListSortDirection)

Sorts the items if overridden in a derived class; otherwise, throws a NotSupportedException.

override
ClearItems()

Removes all elements from the collection.

FindCore(PropertyDescriptor, object) : int

Searches for the index of the item that has the specified property descriptor with the specified value, if searching is implemented in a derived class; otherwise, a NotSupportedException.

override
InsertItem(int, T)
Documentation for this section has not yet been entered.
OnAddingNew(AddingNewEventArgs)

Raises the BindingList`1.AddingNew event.

OnListChanged(ListChangedEventArgs)

Raises the BindingList`1.ListChanged event.

override
RemoveItem(int)

Removes the item at the specified index.

RemoveSortCore()

Removes any sort applied with BindingList`1.ApplySortCore(PropertyDescriptor, ListSortDirection) if sorting is implemented in a derived class; otherwise, raises NotSupportedException.

override
SetItem(int, T)
Documentation for this section has not yet been entered.

Public Events

AddingNew

Occurs before an item is added to the list.

ListChanged

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

Explicitly Implemented Interface Members

System.ComponentModel.IBindingList.AddIndex

For a description of this member, see IBindingList.AddIndex(PropertyDescriptor).

System.ComponentModel.IBindingList.AddNew

Adds a new item to the list. For more information, see IBindingList.AddNew.

[read-only]
System.ComponentModel.IBindingList.AllowEditbool.

Gets a value indicating whether items in the list can be edited.

[read-only]
System.ComponentModel.IBindingList.AllowNewbool.

Gets a value indicating whether new items can be added to the list using the BindingList`1.AddNew method.

[read-only]
System.ComponentModel.IBindingList.AllowRemovebool.

Gets a value indicating whether items can be removed from the list.

System.ComponentModel.IBindingList.ApplySort

Sorts the list based on a System.ComponentModel.PropertyDescriptor and a System.ComponentModel.ListSortDirection. For a complete description of this member, see IBindingList.ApplySort(PropertyDescriptor, ListSortDirection).

System.ComponentModel.IBindingList.Find

For a description of this member, see IBindingList.Find(PropertyDescriptor, object).

[read-only]
System.ComponentModel.IBindingList.IsSortedbool.

For a description of this member, see IBindingList.IsSorted.

[read-only]
System.ComponentModel.IRaiseItemChangedEvents.RaisesItemChangedEventsbool.

Gets a value indicating whether item property value changes raise BindingList`1.ListChanged events of type ListChangedType.ItemChanged. This member cannot be overridden in a derived class.

System.ComponentModel.IBindingList.RemoveIndex

For a description of this member, see IBindingList.RemoveIndex(PropertyDescriptor).

System.ComponentModel.IBindingList.RemoveSort

For a description of this member, see IBindingList.RemoveSort

[read-only]
System.ComponentModel.IBindingList.SortDirectionListSortDirection.

For a description of this member, see IBindingList.SortDirection.

[read-only]
System.ComponentModel.IBindingList.SortPropertyPropertyDescriptor.

For a description of this member, see IBindingList.SortProperty.

[read-only]
System.ComponentModel.IBindingList.SupportsChangeNotificationbool.

For a description of this member, see IBindingList.SupportsChangeNotification.

[read-only]
System.ComponentModel.IBindingList.SupportsSearchingbool.

For a description of this member, see IBindingList.SupportsSearching.

[read-only]
System.ComponentModel.IBindingList.SupportsSortingbool.

For a description of this member, see IBindingList.SupportsSorting.