wpf-devexpress-dot-xpf-dot-grid-dot-tableview-497d5a96.md
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
public ICommand<RowEditStartedArgs> RowEditStartedCommand { get; set; }
Public Property RowEditStartedCommand As ICommand(Of RowEditStartedArgs)
| Type | Description |
|---|---|
| ICommand<RowEditStartedArgs> |
A command that is executed when a user edits a row.
|
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
<dxg:GridControl.View>
<dxg:TableView EditFormShowMode="Inline" RowEditStartedCommand="{Binding LockUpdatesCommand}" RowEditFinishedCommand="{Binding UnlockUpdatesCommand}"/>
</dxg:GridControl.View>
See Also