This is a migrated thread and some comments may be shown as answers.

Insert row : explicitely call CommitEdit

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 01 Sep 2011, 01:38 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 03 Sep 2011, 11:29 AM
Hello Marc,

Unfortunately I cannot figure out what is going on with the supplied information.
Could you please send me a sample project which I can debug on my side?
Thank you in advance.

Kind regards,
Nedyalko Nikolov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Marc
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or