System.ComponentModel.BindingList<T>.CancelNew Method

Discards a pending new item.

Syntax

public virtual void CancelNew (int itemIndex)

Parameters

itemIndex
The index of the of the new item to be added

Remarks

The BindingList`1.CancelNew(int) method rolls back a pending new item that was added through the BindingList`1.AddNew method, but has not yet been committed.

For more information about adding and committing new items, see the BindingList`1.AddNew method

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0