wpf-devexpress-dot-xpf-dot-grid-dot-dialogeditformbehavior-6353c209.md
Gets or sets a template that defines editors in the dialog edit form. Use the CreateEditItemViewModel event or the CreateEditItemViewModelCommand to specify the template’s data context.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Extensions.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public DataTemplate EditTemplate { get; set; }
Public Property EditTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A template that defines editors in the dialog edit form.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the EditTemplate 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.
ValidateRowDeletion="OnValidateRowDeletion">
<dxg:DialogEditFormBehavior.EditTemplate>
<DataTemplate>
wpf-data-grid-extend-crud-operations/CS/DetailCollectionEditing/MainWindow.xaml#L37
<dxg:DialogEditFormBehavior x:Name="EditFormBehavior" KeyProperty="Id" CreateEditItemViewModelCommand="{Binding CreateEditEntityViewModelCommand}" ValidateRowCommand="{Binding ValidateRowCommand}" ValidateRowDeletionCommand="{Binding ValidateRowDeletionCommand}">
<dxg:DialogEditFormBehavior.EditTemplate>
<DataTemplate>
See Also