We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

13.2.0.29 SfDataGrid SetCellBoundValue="True" forces TwoWay binding

We just upgraded our WPF solution from Syncfusion Essentials 13.1.0.21 to 13.2.0.29 and discovered that all SfDataGrid columns that set SetCellBoundValue="True" now use TwoWay bindings. This causes the error "A TwoWay or OneWayToSource binding cannot work on the read-only property 'FilePK' of type ..." because the underlying object for each row has a public getter and a private setter for the FilePK property.

If I remove the SetCellBoundValue="True" and CellTamplate={StaticResource d6_celltemplate} then the column correctly displays the raw data.

If I change the SetCellBoundValue="False" and change the template from <TextBlock Text={Binding Path=Value, StringFormat=D6}/> to <TextBlock Text={Binding Path=FilePK, StringFormat=D6}/> then the column correctly displays the formatted data however the template is now specific to the FilePK column.

If I change the template to <TextBlock Text={Binding Path=Value, Mode=OneWay, StringFormat=D6}/> the binding mode is ignored and I receive the original error.

If I move back to a development machine that is still running Syncfusion Essentials 13.1.0.21 the exact same code works perfectly.

Is this new behavior by design or is this an unexpected temporary feature?

1 Reply

GM Gobikrishnan Murugesan Syncfusion Team July 23, 2015 12:20 PM UTC

Hi Russ Blair,

We can to reproduce the issue “A TwoWay or OneWayToSource binding cannot work on the read-only property” and we have fixed the issue in V 13.2.0.29. A support incident to track the patch details of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any queries.

Regards,

Gobikrishnan M.


Loader.
Up arrow icon