1 interface inheriting from IBindingList
System.ComponentModel.TypeConverter (1)
System\ComponentModel\IBindingListView.cs (1)
8public interface IBindingListView : IBindingList
3 implementations of IBindingList
System.ComponentModel.TypeConverter (1)
System\ComponentModel\BindingList.cs (1)
16Collection<T>, IBindingList, ICancelAddNew, IRaiseItemChangedEvents
System.Data.Common (2)
System\Data\DataViewManager.cs (1)
15public class DataViewManager : MarshalByValueComponent, IBindingList, System.ComponentModel.ITypedList
System\Data\LinqDataView.cs (1)
18internal sealed class LinqDataView : DataView, IBindingList, IBindingListView
115 references to IBindingList
netstandard (1)
netstandard.cs (1)
323[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IBindingList))]
PresentationFramework (11)
MS\Internal\Data\ViewManager.cs (2)
564IBindingList ibl = il as IBindingList;
MS\Internal\SystemDataHelper.cs (1)
19internal static bool IsDataView(IBindingList list)
System\Windows\Data\BindingListCollectionView.cs (4)
26/// <seealso cref="ICollectionView"/> based on and associated to <seealso cref="IBindingList"/> 43public BindingListCollectionView(IBindingList list) 2165private IBindingList InternalList 2553private IBindingList _internalList;
System\Windows\Data\CollectionView.cs (4)
105IBindingList ibl; 107((ibl = collection as IBindingList) != null && !ibl.SupportsChangeNotification)) 680IBindingList ibl; 682((ibl = _sourceCollection as IBindingList) != null && !ibl.SupportsChangeNotification))
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
20internal override bool IsDataView(IBindingList list)
System (1)
src\libraries\shims\System\ref\System.cs (1)
309[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IBindingList))]
System.ComponentModel.TypeConverter (16)
System\ComponentModel\BindingList.cs (16)
290public T AddNew() => (T)((this as IBindingList).AddNew())!; 292object? IBindingList.AddNew() 353bool IBindingList.AllowNew => AllowNew; 368bool IBindingList.AllowEdit => AllowEdit; 383bool IBindingList.AllowRemove => AllowRemove; 385bool IBindingList.SupportsChangeNotification => SupportsChangeNotificationCore; 389bool IBindingList.SupportsSearching => SupportsSearchingCore; 393bool IBindingList.SupportsSorting => SupportsSortingCore; 397bool IBindingList.IsSorted => IsSortedCore; 401PropertyDescriptor? IBindingList.SortProperty => SortPropertyCore; 405ListSortDirection IBindingList.SortDirection => SortDirectionCore; 409void IBindingList.ApplySort(PropertyDescriptor prop, ListSortDirection direction) 419void IBindingList.RemoveSort() => RemoveSortCore(); 426int IBindingList.Find(PropertyDescriptor prop, object key) => FindCore(prop, key); 433void IBindingList.AddIndex(PropertyDescriptor prop) 438void IBindingList.RemoveIndex(PropertyDescriptor prop)
System.Data.Common (35)
System\Data\DataRelationPropertyDescriptor.cs (1)
22public override Type PropertyType => typeof(IBindingList);
System\Data\DataTablePropertyDescriptor.cs (1)
22public override Type PropertyType => typeof(IBindingList);
System\Data\DataView.cs (15)
941bool IBindingList.AllowNew => AllowNew; 942object IBindingList.AddNew() => AddNew(); 943bool IBindingList.AllowEdit => AllowEdit; 944bool IBindingList.AllowRemove => AllowDelete; 946bool IBindingList.SupportsChangeNotification => true; 947bool IBindingList.SupportsSearching => true; 948bool IBindingList.SupportsSorting => true; 949bool IBindingList.IsSorted => Sort.Length != 0; 951PropertyDescriptor? IBindingList.SortProperty => GetSortProperty(); 962ListSortDirection IBindingList.SortDirection => (_index!._indexFields.Length == 1 && _index._indexFields[0].IsDescending) ? 992void IBindingList.AddIndex(PropertyDescriptor property) => GetFindIndex(property.Name, keepIndex: true); 994void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) 999int IBindingList.Find(PropertyDescriptor property, object key) 1038void IBindingList.RemoveIndex(PropertyDescriptor property) 1044void IBindingList.RemoveSort()
System\Data\DataViewManager.cs (15)
200bool IBindingList.AllowNew => false; 201object IBindingList.AddNew() 206bool IBindingList.AllowEdit => false; 208bool IBindingList.AllowRemove => false; 210bool IBindingList.SupportsChangeNotification => true; 212bool IBindingList.SupportsSearching => false; 214bool IBindingList.SupportsSorting => false; 216bool IBindingList.IsSorted 221PropertyDescriptor IBindingList.SortProperty 226ListSortDirection IBindingList.SortDirection 233void IBindingList.AddIndex(PropertyDescriptor property) 238void IBindingList.ApplySort(PropertyDescriptor property, ListSortDirection direction) 243int IBindingList.Find(PropertyDescriptor property, object key) 248void IBindingList.RemoveIndex(PropertyDescriptor property) 253void IBindingList.RemoveSort()
System\Data\LinqDataView.cs (3)
237void IBindingList.RemoveSort() 247PropertyDescriptor? IBindingList.SortProperty 277bool IBindingList.IsSorted
System.Windows.Forms (49)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (7)
88return CurrencyManager is { List: IBindingList { SupportsChangeNotification: true }, AllowAdd: true }; 99return CurrencyManager is { AllowRemove: true, List: IBindingList { SupportsChangeNotification: true } }; 302if (CurrencyManager?.List is not IBindingList { SupportsSorting: true, IsSorted: true }) 737if (CurrencyManager.List is IBindingList ibl && ibl.SupportsSorting && ibl.IsSorted) 974if (CurrencyManager?.List is not IBindingList { SupportsSorting: true, IsSorted: true } ibl) 1542Debug.Assert(List is IBindingList, "you should have checked by now that we are bound to an IBindingList"); 1543((IBindingList)List).ApplySort(_props![dataGridViewColumn.BoundColumnIndex], direction);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
13648&& (DataConnection!.List is IBindingList) 13649&& ((IBindingList)DataConnection.List).SupportsSorting 28190if (DataConnection?.List is not IBindingList ibl)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1423if ((DataManager.List is IBindingList bindingList) && bindingList.SupportsSearching)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (2)
794if (DataGridView.DataConnection!.List is IBindingList list && list.AllowRemove && list.SupportsChangeNotification) 2192if (DataGridView.DataConnection!.List is IBindingList bindingList && bindingList.AllowRemove && bindingList.SupportsChangeNotification)
System\Windows\Forms\DataBinding\BindingNavigator.cs (2)
510allowNew = (_bindingSource as IBindingList).AllowNew; 511allowRemove = (_bindingSource as IBindingList).AllowRemove;
System\Windows\Forms\DataBinding\BindingSource.cs (24)
122return ((IBindingList)List).AllowNew; 291else if (List is IBindingList ibl && ibl.SupportsSorting && ibl.IsSorted) 327if (List is IBindingList ibl && ibl.SupportsSorting) 653return ((IBindingList)this).Find(pd, key); 779/// This method is used to fire ListChanged events when the inner list is not an <see cref="IBindingList"/> 1015if (!((IBindingList)this).AllowRemove) 1165_state.ChangeFlags(BindingSourceStates.IsBindingList, (listInternal is IBindingList)); 1311if (_innerList is IBindingList list) 1319if (_innerList is IBindingList list) 1600addNewItem = ((IBindingList)List).AddNew(); 1636get => _state.HasFlag(BindingSourceStates.IsBindingList) ? ((IBindingList)List).AllowEdit : !List.IsReadOnly; 1672get => _state.HasFlag(BindingSourceStates.IsBindingList) ? ((IBindingList)List).AllowRemove : !List.IsReadOnly && !List.IsFixedSize; 1681get => _state.HasFlag(BindingSourceStates.IsBindingList) && ((IBindingList)List).SupportsSearching; 1687get => _state.HasFlag(BindingSourceStates.IsBindingList) && ((IBindingList)List).SupportsSorting; 1693get => _state.HasFlag(BindingSourceStates.IsBindingList) && ((IBindingList)List).IsSorted; 1700get => _state.HasFlag(BindingSourceStates.IsBindingList) ? ((IBindingList)List).SortProperty : null; 1707get => _state.HasFlag(BindingSourceStates.IsBindingList) ? ((IBindingList)List).SortDirection : ListSortDirection.Ascending; 1710void IBindingList.AddIndex(PropertyDescriptor property) 1717((IBindingList)List).AddIndex(property); 1728((IBindingList)List).ApplySort(property, sort); 1738return ((IBindingList)List).Find(prop, key); 1741void IBindingList.RemoveIndex(PropertyDescriptor prop) 1748((IBindingList)List).RemoveIndex(prop); 1757((IBindingList)List).RemoveSort();
System\Windows\Forms\DataBinding\CurrencyManager.cs (10)
67if (_list is IBindingList bindingList) 89if (_list is IBindingList bindingList) 110if (_list is IBindingList bindingList) 276if (_list is IBindingList ibl) 520if (_list is IBindingList { SupportsSorting: true } bindingList) 531if (_list is IBindingList { SupportsSorting: true } bindingList) 544if (_list is IBindingList { SupportsSorting: true } bindingList) 559if (property is not null && _list is IBindingList { SupportsSearching: true } bindingList) 999if (list is IBindingList bindingList && bindingList.SupportsChangeNotification) 1077if (list is IBindingList bindingList && bindingList.SupportsChangeNotification)
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
345Mock<IBindingList> mockList = new(MockBehavior.Strict);