Back to Devexpress

CRXPF0012 - Columns with the specified Binding property are read-only

coderushforroslyn-404296-static-code-analysis-xaml-analyzers-crxpf-0012-columns-with-the-specified-binding-property-are-read-only.md

latest925 B
Original Source

CRXPF0012 - Columns with the specified Binding property are read-only

  • Feb 14, 2023

Severity: Info

The analyzer detects that you use the column’s Binding property to bind the column to a data source field. In this case, users cannot edit this column’s values.

Examples

Invalid Code

xaml
<dxg:GridColumn Binding="{Binding SomeFieldName}"/>

Valid Code

xaml
<dxg:GridColumn Binding="{Binding SomeFieldName, Mode=TwoWay}"/>

How to Fix

Set the binding’s Mode property to TwoWay to allow users to edit column values.

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