We want to insert the new row and then refresh the grid with appropriate data.
So in the InsertCompleted callbak of the service, we refresh we collection.
When we click the insert button while still having the focus in one cell (e.g. without leaving the row), we get an exception (index was out of range) during the Clear call of the original collection. We fixed it by explicitely calling the CommitEdit before clearing the collection.
But in the exception stack trace we see a CommitEdit call, but it looks like it is called too late. The question is: is the CommitEdit done by the grid too late? We do we have to doit explicitely?
The problem des not exist for an update.
So in the InsertCompleted callbak of the service, we refresh we collection.
When we click the insert button while still having the focus in one cell (e.g. without leaving the row), we get an exception (index was out of range) during the Clear call of the original collection. We fixed it by explicitely calling the CommitEdit before clearing the collection.
But in the exception stack trace we see a CommitEdit call, but it looks like it is called too late. The question is: is the CommitEdit done by the grid too late? We do we have to doit explicitely?
The problem des not exist for an update.