BindingSource.RemoveCurrent Method ()

 

Removes the current item from the list.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void RemoveCurrent()

Exception Condition
InvalidOperationException

The AllowRemove property is false.

-or-

Position is less than zero or greater than Count.

NotSupportedException

The underlying list represented by the List property is read-only or has a fixed size.

The RemoveCurrent method is equivalent to the RemoveAt method.

.NET Framework
Available since 2.0
Return to top
Show: