Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IEditableCollectionView.CanCancelEdit Property

Gets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object.

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

bool CanCancelEdit { get; }

Property Value

Type: System.Boolean
true if the collection view can discard pending changes and restore the original values of an edited object; otherwise, false.

CanCancelEdit is true if the view supports the notion of "pending changes" on the currently edited item. For example, a collection view might return true if the edited item implements IEditableObject, or if the view has information about the item's state that it can use to roll back changes. CanCancelEdit is false if the view cannot revert changes on an object. In that case, call CancelEdit to cause the view to exit the edit state and provide logic to revert the changes on the object that was edited.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft