Skip to main content
All docs
V22.2

CRXPF0005 - Cell template without PART_Editor

Severity: Error

The analyzer detects that you specified a cell template (ColumnBase.CellTemplate, DataViewBase.CellTemplate, ColumnBase.CellDisplayTemplate, DataViewBase.CellDisplayTemplate, ColumnBase.CellEditTemplate, or DataViewBase.CellEditTemplate) that contains a BaseEdit descendant and did not set the editor’s name to "PART_Editor".

Examples

Invalid Code

<!-- GridColumn, TreeListColumn, TableView, TreeListView, CardView -->
<!-- CellTemplate, CellDisplayTemplate, CellEditTemplate -->
<dxg:GridColumn.CellTemplate>
    <DataTemplate>
        <!-- A DevExpress.Xpf.Editors.BaseEdit descendant: -->
        <dxe:TextEdit/>
        <!-- OR -->
        <dxe:TextEdit Name="Not PART_Editor"/>
        <!-- OR -->
        <dxe:TextEdit x:Name="Not PART_Editor"/>
    </DataTemplate>
</dxg:GridColumn.CellTemplate>

Valid Code

<!-- GridColumn, TreeListColumn, TableView, TreeListView, CardView -->
<!-- CellTemplate, CellDisplayTemplate, CellEditTemplate -->
<dxg:GridColumn.CellTemplate>
    <DataTemplate>
        <!-- A DevExpress.Xpf.Editors.BaseEdit descendant: -->
        <dxe:TextEdit x:Name="PART_Editor"/>
    </DataTemplate>
</dxg:GridColumn.CellTemplate>

How to Fix

If you define a custom editor (a BaseEdit descendant) in the cell’s template, set the editor’s name to "PART_Editor" to bind and configure the editor’s properties.

Refer to the following help topic for more information: Custom In-Place Cell Editors.