Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
XamTextEditor/XamMaskedEditor Data Binding and DataRow.
posted

I have the same issue as this post :

http://blogs.infragistics.com/forums/p/16416/59790.aspx

Was there ever a solution for this?  When I bind the Text property of the XamMaskedEditor to a column in a datarow, with the datamode=Raw, when I click in the MaskedTextbox (but don't edit anything), it marks the DataRow.DataRowState as Modified.

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    The WPF binding infrastructure updates the source object whenever the DP is set even if it is to the same value. When you go into edit mode, the editor recalculates the text property by reconverting the value to a string since you could have a displaytextconverter that represents the value differently while in edit mode then not. You could either set the IsAlwaysInEditMode to true so that it doesn't enter/leave edit mode based on focus or bind the Value property instead of binding the Text property.

Children