Back to Devexpress

DialogEditFormBehavior.ValidateRowCommand Property

wpf-devexpress-dot-xpf-dot-grid-dot-dialogeditformbehavior-f3057d26.md

latest3.5 KB
Original Source

DialogEditFormBehavior.ValidateRowCommand Property

Gets or sets a command that validates input values, checks database constraints, and saves changes to the database. The behavior executes this command after a user saves changes made in the edit form dialog.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
ICommand<EditFormRowValidationArgs>

A command that validates input values, checks database constraints, and saves changes to the database.

|

Remarks

After a user saves changes made in the dialog edit form , the behavior raises the ValidateRow event and executes the ValidateRowCommand.

Refer to the following help topic for more information: DialogEditFormBehavior.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ValidateRowCommand 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-implement-crud-operations/CS/ViewModel/EFCore/InstantFeedbackMode/MainWindow.xaml#L51

xml
<dxg:DialogEditFormBehavior x:Name="EditFormBehavior" KeyProperty="Id"
                            CreateEditItemViewModelCommand="{Binding CreateEditEntityViewModelCommand}" ValidateRowCommand="{Binding ValidateRowCommand}"
                            ValidateRowDeletionCommand="{Binding ValidateRowDeletionCommand}">

wpf-data-grid-extend-crud-operations/CS/DetailCollectionEditing/MainWindow.xaml#L36

xml
<dxmvvm:Interaction.Behaviors>
    <dxg:DialogEditFormBehavior x:Name="EditFormBehavior" KeyProperty="Id" CreateEditItemViewModelCommand="{Binding CreateEditEntityViewModelCommand}" ValidateRowCommand="{Binding ValidateRowCommand}" ValidateRowDeletionCommand="{Binding ValidateRowDeletionCommand}">
        <dxg:DialogEditFormBehavior.EditTemplate>

See Also

DialogEditFormBehavior Class

DialogEditFormBehavior Members

DevExpress.Xpf.Grid Namespace