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
- Do not use the ColumnBase.FieldName and ColumnBase.Binding properties simultaneously if they refer to an existing data source property.
- Set the ColumnBase.FieldName property to a property that does not exist in your data source when you use the ColumnBase.Binding property.
Refer to the following help topic for more information: Binding Columns to Data Source Fields.