BindingListCollectionView.CancelEdit Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Ends the edit transaction and, if possible, restores the original value to the item.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void CancelEdit()

CancelEdit sets CurrentEditItem to null and causes the collection view to exit the edit state. If CanCancelEdit is true, CancelEdit also restores the original values of the edited object.

.NET Framework
Available since 3.0
Return to top