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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback SfDataGrid SetCellBoundValue="True" forces TwoWay binding

Thread ID:





119701 Jul 22,2015 10:55 PM UTC Jul 23,2015 12:20 PM UTC WPF 1
Tags: SfDataGrid
Russ Blair
Asked On July 22, 2015 10:55 PM UTC

We just upgraded our WPF solution from Syncfusion Essentials to 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 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 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 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


Please let me know if you have any queries.


Gobikrishnan M.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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