Skip to main content

ColumnBase.EditFormTemplate Property

Gets or sets a template of the editor associated with the current column in the edit form.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core


public DataTemplate EditFormTemplate { get; set; }

Property Value

Type Description

The template that defines the appearance of a data editor. The template’s data context is a DevExpress.Xpf.Grid.EditForm.EditFormCellData object.


A template specified by the EditFormTemplate property is applied to the editor displayed in the edit form.

The following example demonstrates the GridControl that displays the inline edit form. The SpinEdit editor is used for the Visits field.

<dxg:GridControl ItemsSource="{Binding Data}">
        <dxg:TableView EditFormShowMode="Inline">
    <dxg:GridColumn FieldName="Name" />
    <dxg:GridColumn FieldName="City" />
    <dxg:GridColumn FieldName="IsOccupied" />
    <dxg:GridColumn FieldName="Visits">
        <!-- Edit form displays a spin editor for the Visits field -->
                <dxe:SpinEdit Name="PART_Editor"/>
    <dxg:GridColumn FieldName="Birthday" />

Refer to the following help topic for more information: Appearance Customization.

See Also