Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ComponentModel.​IBindingList

Assembly: System.ComponentModel.TypeConverter

Implemented Interfaces

Provides the features required to support both complex and simple scenarios when binding to a data source.

Properties

bool
AllowEdit
Gets whether you can update items in the list.
bool
AllowNew
Gets whether you can add items to the list using <see cref="M:System.ComponentModel.IBindingList.AddNew" /> .
bool
AllowRemove
Gets whether you can remove items from the list, using <see cref="M:System.Collections.IList.Remove(System.Object)" /> or <see cref="M:System.Collections.IList.RemoveAt(System.Int32)" /> .
bool
IsSorted
Gets whether the items in the list are sorted.
SortDirection
Gets the direction of the sort.
SortProperty
Gets the <see cref="T:System.ComponentModel.PropertyDescriptor" /> that is being used for sorting.
bool
SupportsChangeNotification
Gets whether a <see cref="E:System.ComponentModel.IBindingList.ListChanged" /> event is raised when the list changes or an item in the list changes.
bool
SupportsSearching
Gets whether the list supports searching using the <see cref="M:System.ComponentModel.IBindingList.Find(System.ComponentModel.PropertyDescriptor,System.Object)" /> method.
bool
SupportsSorting
Gets whether the list supports sorting.

Methods

void
AddIndex​(PropertyDescriptor property)
Adds the <see cref="T:System.ComponentModel.PropertyDescriptor" /> to the indexes used for searching.
property The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to add to the indexes used for searching.
object
AddNew​()
Adds a new item to the list.
Returns The item added to the list.
void
ApplySort​(PropertyDescriptor property, ListSortDirection direction)
Sorts the list based on a <see cref="T:System.ComponentModel.PropertyDescriptor" /> and a <see cref="T:System.ComponentModel.ListSortDirection" /> .
property The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to sort by.
direction One of the <see cref="T:System.ComponentModel.ListSortDirection" /> values.
int
Find​(PropertyDescriptor property, object key)
Returns the index of the row that has the given <see cref="T:System.ComponentModel.PropertyDescriptor" /> .
Returns The index of the row that has the given <see cref="T:System.ComponentModel.PropertyDescriptor" /> .
property The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to search on.
key The value of the <paramref name="property" /> parameter to search for.
void
RemoveIndex​(PropertyDescriptor property)
Removes the <see cref="T:System.ComponentModel.PropertyDescriptor" /> from the indexes used for searching.
property The <see cref="T:System.ComponentModel.PropertyDescriptor" /> to remove from the indexes used for searching.
void
RemoveSort​()
Removes any sort applied using <see cref="M:System.ComponentModel.IBindingList.ApplySort(System.ComponentModel.PropertyDescriptor,System.ComponentModel.ListSortDirection)" /> .