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
2170
How to force a refresh when using ValueToDisplayTextConverter
posted

Hi,

I use XamTextEditor in XamDataGrid and set its ValueToDisplayTextConverter to my converter which reads a global setting to format the display value. The problem I'm having now is when the global setting is changed, I want the already displayed grid have a refresh so that the changed format can be applied. Is there any way to do this? Thanks!

Cheers,

Daniel

  • 69686
    posted

    Hello Daniel,

    Resetting the style will call the Convert method of the ValueToDisplayTextConverter, for example :

     

    xamDataGrid1.FieldSettings.EditorStyle =

     

    null;

    xamDataGrid1.FieldSettings.EditorStyle =

     

    this.Resources["style"] as Style;