Redigeeri

Jagamisviis:


IBindingListView Interface

Definition

Extends the IBindingList interface by providing advanced sorting and filtering capabilities.

public interface class IBindingListView : System::Collections::IList, System::ComponentModel::IBindingList
public interface class IBindingListView : System::ComponentModel::IBindingList
public interface IBindingListView : System.Collections.IList, System.ComponentModel.IBindingList
public interface IBindingListView : System.ComponentModel.IBindingList
type IBindingListView = interface
    interface ICollection
    interface IEnumerable
    interface IList
    interface IBindingList
type IBindingListView = interface
    interface IBindingList
    interface IList
    interface ICollection
    interface IEnumerable
Public Interface IBindingListView
Implements IBindingList, IList
Public Interface IBindingListView
Implements IBindingList
Derived
Implements

Remarks

With the IBindingListView interface, you implement advanced sorting as a set of property descriptor-direction pairs. You implement filtering as a string to be interpreted by the data source implementation. The IBindingListView interface is implemented by the BindingSource class.

Properties

AllowEdit

Gets whether you can update items in the list.

(Inherited from IBindingList)
AllowNew

Gets whether you can add items to the list using AddNew().

(Inherited from IBindingList)
AllowRemove

Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).

(Inherited from IBindingList)
Count

Gets the number of elements contained in the ICollection.

(Inherited from ICollection)
Filter

Gets or sets the filter to be used to exclude items from the collection of items returned by the data source.

IsFixedSize

Gets a value indicating whether the IList has a fixed size.

(Inherited from IList)
IsReadOnly

Gets a value indicating whether the IList is read-only.

(Inherited from IList)
IsSorted

Gets whether the items in the list are sorted.

(Inherited from IBindingList)
IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(Inherited from ICollection)
Item[Int32]

Gets or sets the element at the specified index.

(Inherited from IList)
SortDescriptions

Gets the collection of sort descriptions currently applied to the data source.

SortDirection

Gets the direction of the sort.

(Inherited from IBindingList)
SortProperty

Gets the PropertyDescriptor that is being used for sorting.

(Inherited from IBindingList)
SupportsAdvancedSorting

Gets a value indicating whether the data source supports advanced sorting.

SupportsChangeNotification

Gets whether a ListChanged event is raised when the list changes or an item in the list changes.

(Inherited from IBindingList)
SupportsFiltering

Gets a value indicating whether the data source supports filtering.

SupportsSearching

Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.

(Inherited from IBindingList)
SupportsSorting

Gets whether the list supports sorting.

(Inherited from IBindingList)
SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

(Inherited from ICollection)

Methods

Add(Object)

Adds an item to the IList.

(Inherited from IList)
AddIndex(PropertyDescriptor)

Adds the PropertyDescriptor to the indexes used for searching.

(Inherited from IBindingList)
AddNew()

Adds a new item to the list.

(Inherited from IBindingList)
ApplySort(ListSortDescriptionCollection)

Sorts the data source based on the given ListSortDescriptionCollection.

ApplySort(PropertyDescriptor, ListSortDirection)

Sorts the list based on a PropertyDescriptor and a ListSortDirection.

(Inherited from IBindingList)
Clear()

Removes all items from the IList.

(Inherited from IList)
Contains(Object)

Determines whether the IList contains a specific value.

(Inherited from IList)
CopyTo(Array, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

(Inherited from ICollection)
Find(PropertyDescriptor, Object)

Returns the index of the row that has the given PropertyDescriptor.

(Inherited from IBindingList)
GetEnumerator()

Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)
IndexOf(Object)

Determines the index of a specific item in the IList.

(Inherited from IList)
Insert(Int32, Object)

Inserts an item to the IList at the specified index.

(Inherited from IList)
Remove(Object)

Removes the first occurrence of a specific object from the IList.

(Inherited from IList)
RemoveAt(Int32)

Removes the IList item at the specified index.

(Inherited from IList)
RemoveFilter()

Removes the current filter applied to the data source.

RemoveIndex(PropertyDescriptor)

Removes the PropertyDescriptor from the indexes used for searching.

(Inherited from IBindingList)
RemoveSort()

Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).

(Inherited from IBindingList)

Events

ListChanged

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

(Inherited from IBindingList)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to