Back to Devexpress

GridViewBase.RowUpdatedCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridviewbase-e976c46a.md

latest2.2 KB
Original Source

GridViewBase.RowUpdatedCommand Property

Gets or sets a command executed when the GridControl updates the data source with the changes made within the focused row.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
ICommand<RowUpdatedArgs>

A command executed when the GridControl updates the data source with the changes made within the focused row.

|

Remarks

Bind a command to the RowUpdatedCommand property to maintain a clean MVVM pattern. The command works like a RowUpdated event handler and allows you to process the row update operation in a View Model.

The GridControl validates changes made within the focused row when you try to move focus to another row. You can also invoke the CommitEditing method to validate changes. If all new values are valid, the GridControl updates the data source and calls the bound command.

Refer to the following topic if you want to update a row asynchronously: ResultAsync.

See Also

RowUpdated

GridViewBase Class

GridViewBase Members

DevExpress.Xpf.Grid Namespace