Back to Devexpress

TableView.RowEditStartedCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-497d5a96.md

latest3.0 KB
Original Source

TableView.RowEditStartedCommand Property

Gets or sets a command that is executed when a user edits a row.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
ICommand<RowEditStartedArgs>

A command that is executed when a user edits a row.

|

Remarks

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

The following example uses 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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowEditStartedCommand 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

RowEditStarted

RowEditStartingCommand

RowEditFinishedCommand

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace