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

TableView.CancelRowChanges() Method

In This Article

Discards the edited row’s changes.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void CancelRowChanges()

#Remarks

Tip

Corresponding Command: TableViewCommands.CancelRowChanges

Click the Update button to post the edited row’s changes to the data source. Alternatively, you can call the TableView.UpdateRow method or the TableViewCommands.UpdateRow command.

Click the Cancel button to discard the edited row’s changes. Alternatively, you can call the TableView.CancelRowChanges method or the TableViewCommands.CancelRowChanges command.

Tip

The CancelRowChanges method works only in Edit Entire Row mode. For the default edit mode, you can use the DataViewBase.CancelRowEdit method.

See Also