Update Files

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    38 posts
    Member since:
    Mar 2008

    Posted 27 Oct 2008 Link to this post

    (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.
  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 30 Oct 2008 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top