Back to Devexpress

TableView.RowEditFinishedCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-10779091.md

latest3.3 KB
Original Source

TableView.RowEditFinishedCommand Property

Gets or sets a command that is executed when a user finished the edit operation in a row.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ICommand<RowEditFinishedArgs> RowEditFinishedCommand { get; set; }
vb
Public Property RowEditFinishedCommand As ICommand(Of RowEditFinishedArgs)

Property Value

TypeDescription
ICommand<RowEditFinishedArgs>

A command that is executed when a user finished the edit operation in a row.

|

Remarks

Bind a command to the RowEditFinishedCommand property to maintain a clean MVVM pattern. The command works like a RowEditFinished event handler and allows you to process the finish of the edit operation in a View Model.

The following example uses the RowEditStartedCommand and RowEditFinishedCommand to pause data updates in the Edit Form:

View Example: Data Grid for WPF - How to Pause Data Updates in the Edit Form

Use the Success property to identify whether a user committed, canceled, or did not makes changes in the row.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowEditFinishedCommand property.

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.

wpf-data-grid-edit-form-pause-updates/CS/LockOnRowEdit_MVVM/MainWindow.xaml#L17

xml
<dxg:GridControl.View>
    <dxg:TableView EditFormShowMode="Inline" RowEditStartedCommand="{Binding LockUpdatesCommand}" RowEditFinishedCommand="{Binding UnlockUpdatesCommand}"/>
</dxg:GridControl.View>

See Also

RowEditFinished

RowEditStartingCommand

RowEditStartedCommand

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace