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
45
Bound Editor - Ignore Background Updates When in Edit Mode
posted

Hi,

I have a XamDataGrid that uses two-way binding to bind to a list of objects.  One property of the bound objects changes frequently in the background.

It should be possible for the user to overwrite the data in the property (via XamDataGrid).  The problem I have is that if a user starts typing in the editor of the cell and an update occurs, the editor is refreshed with the updated value from the underlying object.

Is it possible for the cell's editor to ignore the background update if it is in edit mode?  If the user cancels edit mode the value that was updated in the background should be displayed.

Thanks,
Ben.

  • 138253
    Offline posted

    Hello Ben,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project for you with the functionality you want. Also I can say that to use it you should bind your XamDataGrid’s DataSource to a Class that implements IBindingList such as DataTable.

     

    Feel free to write me if you have further questions.

    XamDataGriCancelUpdateWhileInEditMode.zip
  • 45
    posted

    Given the number of replies, I take it this is not possibe?