Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataViewBase.CancelRowEdit() Method

In This Article

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

NuGet Package: DevExpress.Wpf.Grid.Core

#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.

See Also