[]
        
(Showing Draft Content)

C1.DataCollection.BindingList.C1BindingListDataCollection

C1BindingListDataCollection Class

This collection takes an IBindingList and wraps its features to be consumed as an IDataCollection<T>.

Inheritance
C1BindingListDataCollection
Namespace: C1.DataCollection.BindingList
Assembly: C1.DataCollection.BindingList.dll
Syntax
public class C1BindingListDataCollection : C1DataCollectionBase<object?>, IDataCollection<object?>, IEnumerable<object?>, IEnumerable, IReadOnlyList<object?>, IReadOnlyCollection<object?>, INotifyCollectionChanged, ISupportIndexing<object?>, INotifyPropertyChanged, IDisposable, ISupportFiltering, ISupportSource, ISupportSorting, ISupportEditing<object?>, ISupportCreateNewItem<object?>

Constructors

Name Description
C1BindingListDataCollection(IBindingList)

Initializes a new instance of the C1BindingListDataCollection class.

Properties

Name Description
BindingList

Gets the underlying IBindingList.

BindingListView

Gets the underlying IBindingListView if it is implemented by the source.

FilterExpression

Gets the filter expression applied to the data.

InternalList

Gets or sets the list that hold the items to be returned in the public api.

this[int]

Gets the element at the specified index in the read-only list.

SortDescriptions

Gets the sort descriptions applied to the data.

Source

Gets the data source of this collection.

Methods

Name Description
CanFilter(FilterExpression?)

Returns whether the collection is able to filter the specified filterExpression.

CanInsert(int, object?)

Determines whether a new item can be inserted in the collection at the specified index.

CanMove(int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanRemove(int)

Determines whether the item at the specified index can be removed from the collection.

CanReplace(int, object?)

Determines whether the item at the specified index can be replaced in the collection.

CanSort(params SortDescription[])

Returns whether the collection is able to sort the specified sortDescriptions.

CreateNewItem()

Creates a new item of the collection.

Dispose(bool)

Called to dispose resources.

FilterAsync(FilterExpression?, CancellationToken)

Filters the data using specified filterExpression.

GetItemType()

Gets the type of the item.

GetPropertyDescriptorValue<T>(PropertyDescriptor, object)

Gets the property descriptor value.

InsertAsync(int, object?, CancellationToken)
MoveAsync(int, int, CancellationToken)
RemoveAsync(int, CancellationToken)
ReplaceAsync(int, object?, CancellationToken)
SetPropertyDescriptorValue<T>(PropertyDescriptor, object, T)

Sets the property descriptor value.

SortAsync(params SortDescription[])

Sorts the collection according to the specified sortDescriptions.

SortAsync(SortDescription[], CancellationToken)

Sorts the collection according to the specified sortDescriptions.

ToFilterString(FilterExpression?, ITypedList?)

Converts the filterExpression into a DataSet filter expression https://learn.microsoft.com/en-us/dotnet/api/system.data.datacolumn.expression.

Events

Name Description
FilterChanged

Raised after a filter operation was performed.

SortChanged

Raised after a sort operation was performed.