IEditableCollectionView.CancelEdit Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Syntax

Sub CancelEdit
void CancelEdit()

Remarks

CancelEdit sets CurrentEditItem to nullNothingnullptra null reference (Nothing in Visual Basic) and causes the collection view to exit the edit state. If CanCancelEdit is true, CancelEdit also restores the original values of the edited object.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

IEditableCollectionView Interface

System.ComponentModel Namespace

CanCancelEdit

EditItem

CancelEdit