Skip to main content
All docs
V22.2

CRXPF0002 - ColumnBase.EditTemplate is used

Severity: Error

The analyzer detects that you use the obsolete ColumnBase.EditTemplate property.

#Examples

#Invalid Code

<dxg:GridControl ...>
    <dxg:GridColumn FieldName="SomeFieldName">
        <dxg:GridColumn.EditTemplate>
            <!-- ... --> 
        </dxg:GridColumn.EditTemplate>
    </dxg:GridColumn>
</dxg:GridControl> 

#Valid Code

<dxg:GridControl ...>
    <dxg:GridColumn FieldName="SomeFieldName">
        <dxg:GridColumn.CellEditTemplate>
            <!-- ... -->
        </dxg:GridColumn.CellEditTemplate>
    </dxg:GridColumn>
</dxg:GridControl>

#How to Fix

Use the ColumnBase.CellEditTemplate property to display a custom editor that allows users to edit column values.