Skip to main content
All docs
V22.2
  • CRXPF0003 - FieldName is equal to the Binding path

    Severity: Warning

    The analyzer detects that you specify the ColumnBase.Binding and ColumnBase.FieldName properties for the same column and warns you that, in this case, the ColumnBase.FieldName property should not be assigned to an existing property name.

    Examples

    Invalid Code

    <dxg:GridColumn FieldName="Name" Binding="{Binding Name, ...}"/>
    <!-- OR -->
    <dxg:GridColumn FieldName="Name" Binding="{Binding Data.Name, ...}"/>
    <!-- OR -->
    <dxg:GridColumn FieldName="Name" Binding="{Binding RowData.Row.Name, ...}"/>
    

    Valid Code

    <dxg:GridColumn FieldName="Name"/>
    <!-- OR -->
    <dxg:GridColumn Binding="{Binding Name, ...}"/>
    <!-- OR -->
    <dxg:GridColumn FieldName="NonExistingName" Binding="{Binding Name, ...}"/>
    

    How to Fix

    Refer to the following help topic for more information: Binding Columns to Data Source Fields.