Skip to main content
All docs
V22.2

CRXPF0011 - The column’s FieldName or Binding property is not defined

Severity: Warning

The analyzer detects that you create a GridColumn object and do not specify its FieldName or Binding property.

Examples

Invalid Code

<dxg:GridColumn/>

Valid Code

<dxg:GridColumn FieldName="SomeFieldName"/>
<!-- OR -->
<dxg:GridColumn Binding="{Binding SomeFieldName}"/>

<!-- Unbound Column -->
<dxg:GridColumn FieldName="NonExistingFieldName"
                UnboundDataType="{x:Type ...}"
                UnboundExpression="..."/>

How to Fix

Specify the column’s FieldName or Binding property to bind the column to a data source field. To create an unbound column, set the FieldName property to a string that does not match an existing field name.

Refer to the following help topics for more information: Bind Columns to Data Source Fields and Unbound Columns.