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

Update Files

1 Answer 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 27 Oct 2008, 11:13 PM
(Sorry, subject should be "Update Failes" but apparently you can't edit that)

I'm building a RadGrid against a LinqDataSource using a popup edit box. All goes well until I try to execute the update, at which time the following error occurs:

Could not find a row that matches the given keys in the original values stored in ViewState.  Ensure that the 'keys' dictionary contains unique key values that correspond to a row returned from the previous Select operation.


All the tables in the LinqDataSource have PKs enable and I make sure that the PK column is included in the grid.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 30 Oct 2008, 11:02 AM
Hi Stephen,

Unfortunately I was unable to reproduce the erratic behavior locally. Can you please check whether the example from the following code library thread works properly on your machine (using editing with popup)? Additionally, verify that the name of the primary key column is added to the DataKeyNames collection of the MasterTableView as shown in the example.

If the problem seems to be elsewhere, I will appreciate if you outline the differences between the grid configuration from the example and yours. They can lead us to the source of the abnormality to address it accordingly.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Stephen
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or