I have a class Item
. My window shows a TreeView with those items and there is a details form on the right (to edit the name of the Item
).
Anyway, when I edit the item name in the TextBox and then press Cancel button (which calls Context.Refresh(StoreWins, myItemEntity)
) the UI does not get updated with old values from the database right away - I have to switch e.g. to another entity in the tree and then it gets updated.
What seems to be the problem here?