BindingList<T>::AllowRemove Property
.NET Framework (current version)
Gets or sets a value indicating whether you can remove items from the collection.
Assembly: System (in System.dll)
Property Value
Type: System::Booleantrue if you can remove items from the list with the RemoveItem method otherwise, false. The default is true.
The AllowRemove property is typically used by other components to determine if the removal of items is allowed.
When AllowRemove is set to a new value, a ListChanged event of type Reset occurs.
The following code example demonstrates how to set the AllowRemove property. For the complete example, see the BindingList<T> class overview topic.
.NET Framework
Available since 2.0
Available since 2.0
Show: