Thanks for the info. I'm not claiming to be a binding expert but I'm going to try and help you as best as I can.
First off, I'm still missing some bits and pieces of information here.
yes, i m editing the currently selected ViewEmployee, and when click OK, it will save the changes. |
So here, you're saying that a window does pop up with the currently selected ViewEmployee and when you click OK, it will save the changes. Could you post some code showing how you're creating this window and what you're binding it to?
My question is do I need to to re-fetch the data again GridView to show the changes? |
The simple answer here is no, provided that the implementation is correct.
or since I have implemented the RaisePropertyChanged on Collection 'GridViewCllection' in the viewmodel, that will automatically notifiy the grid to reflect the changes? |
I'm not sure I understand this part. I believe an ObservableCollection<T> already implements the INotifyPropertyChanged interface. Can I see your RaisePropertyChanged implementation as well?
when I try the same using Database View( to populate GridView) it is not showing updates. |
I'm not sure I understand this part either. Could you elaborate?
If it's okay with you, you can also upload your entire solution (hopefully it's still small), so you don't need to keep posting code snippets.
Here are some links that should be helpful to you as you're implementing a sandbox editor. The main advice here is that you don't save the changes to the database when you click OK but rather, you use a temporary EntityManager and use ImportEntities to import the updated ViewEmployee back to the main EntityManager.