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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

13.2.0.29 SfDataGrid SetCellBoundValue="True" forces TwoWay binding

Thread ID:

Created:

Updated:

Platform:

Replies:

119701 Jul 22,2015 06:55 PM Jul 23,2015 08:20 AM WPF 1
loading
Tags: SfDataGrid
Russ Blair
Asked On July 22, 2015 06:55 PM

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?

Gobikrishnan Murugesan [Syncfusion]
Replied On July 23, 2015 08:20 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;