Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BindingList<T>::CancelNew Method (Int32)

 

Discards a pending new item.

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

public:
virtual void CancelNew(
	int itemIndex
)

Parameters

itemIndex
Type: System::Int32

The index of the of the new item to be added

The CancelNew method rolls back a pending new item that was added through the AddNew method, but has not yet been committed.

For more information about adding and committing new items, see the AddNew method

The following code example demonstrates how use the CancelNew method. For the complete example, see the BindingList<T> class overview topic.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft