Skip to main content

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.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public void CancelRowEdit()


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.

See Also