Skip to main content
A newer version of this page is available. .

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.v18.2.Core.dll

Declaration

public void CancelRowEdit()

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.

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.

See Also