I have a DXGrid bound to a EntityInstantFeedbackDataSource.
I have another button/dialog that deletes a record in the underlying table (independent of EntityInstantFeedbackDataSource).
Now I need to refresh the view.
1) What method do I call to refresh the grid?
2) If I were to perform an EntityInstantFeedbackDataSource aware delete (which notifies the view)
how is this to be done. Your examples regarding EntityInstantFeedbackDataSource are not very helpful.
I believe the approach shown in the How to implement CRUD operations using DXGrid with Entity Framework Code Central example should suit your needs.
It is necessary to save changes at the ObjectContext level via the SaveChanges method after a record has been deleted from the underlying table.
Then, call the EntityInstantFeedbackDataSource.Refresh() method to refresh the datasource. The bound DXGrid will be automatically refreshed.
I hope that this approach will be helpful. If it does not, please describe difficulties you have encountered in greater detail.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.