[]
This class exposes an IDataCollection<T> as a IBindingList so it can be used in WinForm controls that has support for this interface.
public class C1DataCollectionBindingList : IBindingListView, IBindingList, IList, ICollection, IEnumerable, ICancelAddNew, ITypedList
Name | Description |
---|---|
C1DataCollectionBindingList() | Initializes a new instance of the C1DataCollectionBindingList class. |
C1DataCollectionBindingList(IDataCollection<object>, bool, bool) | Initializes a new instance of the C1DataCollectionBindingList class. |
C1DataCollectionBindingList(IEnumerable) | Initializes a new instance of the C1DataCollectionBindingList class. |
Name | Description |
---|---|
AllowEdit | Gets whether you can update items in the list. |
AllowNew | Gets whether you can add items to the list using AddNew(). |
AllowRemove | Gets whether you can remove items from the list, using Remove(object) or RemoveAt(int). |
Count | Gets the number of elements contained in the ICollection. |
DataCollection | Gets or sets the underlying data collection. |
Filter | |
IsCommitting | Gets whether the changes are being committed to the underlying collection |
IsFixedSize | Gets a value indicating whether the IList has a fixed size. |
IsReadOnly | Gets a value indicating whether the IList is read-only. |
IsSorted | |
IsSynchronized | Gets a value indicating whether access to the ICollection is synchronized (thread safe). |
this[int] | Gets the object at the specified index. |
NotifiesReplaceAsReset | Gets whether the item changes(Replace) are notified as Reset. |
SortDescriptions | |
SortDirection | |
SortProperty | |
SupportsAdvancedSorting | |
SupportsChangeNotification | Gets whether a ListChanged event is raised when the list changes or an item in the list changes. |
SupportsFiltering | |
SupportsSearching | Gets whether the list supports searching using the Find(PropertyDescriptor, object) method. |
SupportsSorting | |
SyncRoot | Gets an object that can be used to synchronize access to the ICollection. |
UseNullSentinel | Gets a value indicating whether a sentinel item will be returned for those items that are null. |
Name | Description |
---|---|
Add(object) | Adds an item to the IList. |
AddIndex(PropertyDescriptor) | |
AddNew() | Adds a new item to the list. |
ApplySort(ListSortDescriptionCollection) | |
ApplySort(PropertyDescriptor, ListSortDirection) | |
CancelNew(int) | Discards a pending new item from the collection. |
Clear() | Removes all items from the IList. |
Contains(object) | Determines whether the IList contains a specific value. |
CopyTo(Array, int) | Copies the elements of the ICollection to an Array, starting at a particular Array index. |
EndNew(int) | Commits a pending new item to the collection. |
Find(PropertyDescriptor, object) | |
FromFilterString(string) | Parses a filter expression string and returns the corresponding FilterExpression. |
GetEnumerator() | Returns an enumerator that iterates through a collection. |
GetItemProperties(PropertyDescriptor[]) | |
GetListName(PropertyDescriptor[]) | |
IndexOf(object) | Determines the index of a specific item in the IList. |
Insert(int, object) | Inserts an item to the IList at the specified index. |
OnListChanged(object, ListChangedEventArgs) | Called to raise ListChanged event. |
Remove(object) | Removes the first occurrence of a specific object from the IList. |
RemoveAt(int) | Removes the IList item at the specified index. |
RemoveFilter() | |
RemoveIndex(PropertyDescriptor) | |
RemoveSort() |
Name | Description |
---|---|
ListChanged | Occurs when the list changes or an item in the list changes. |