DataViewBase.CancelRowEdit() Method
Closes the active editor without saving the value to the corresponding property of the data item.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.2.Core.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
Remarks
The GridControl does not store previous values of the currently edited data item. The CancelRowEdit method allows you to discard changes while the editor is still active. Thus method does not discard changes that were already accepted and passed to the data item.
If the data item class implements the IEditableObject interface, the CancelRowEdit method calls the corresponding CancelEdit method.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CancelRowEdit() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.