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
225
Bind DiplayText and EditorValue to different properties
posted

Hi All,

I have xamDataGrid. DataSource binds to collection of some objects. Each object contains two properties

1. Count of type double

2. CountString of type string.

For example Count set to 5.0 and CountString set to "five".

I need to display CountString property on cell/field of the xamDataGrid and Count property on Editor of the cell/field when cell/field is in edit mode.

Do you know how it can be implemented?

Thank you.

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I added a Style for the XamNumericEditor that shows the numeric value and set its ValueToDisplaytextConverter in order to be able to set different value, when not in edit mode. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridEditorDisplayText.zip
Reply Children