BindingList<T>::RemoveItem Method (Int32)

 

Removes the item at the specified index.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

protected:
virtual void RemoveItem(
	int index
) override

Parameters

index
Type: System::Int32

The zero-based index of the item to remove.

Exception Condition
NotSupportedException

You are removing a newly added item and AllowRemove is set to false.

This method raises the ListChanged event of type ItemDeleted.

.NET Framework
Available since 2.0
Return to top
Show: