Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1375
Infragistics.Web.UI.GridControls.MissingRecordException: Requested record cannot be found by key.
posted

Hi Team,

I am getting Runtime error-"Infragistics.Web.UI.GridControls.MissingRecordException: Requested record cannot be found by key."

I am using webdatagrid having the property BatchUpdating="true". This error is happening on the following sequence of operaation.

1)added a new row.

2)edited some column in the newly added row.

3)deleted the newly added now in the client side.

After these operations when I try to reset the grid with the datasource without any of the newly added rows, then it is throwing the above exception. Anyhow I have the code $find("WDG_GridName").get_behaviors().get_editingCore().clearBatchUpdates(); to clear the batch.

It is a serious problem and it is going to production soon. Help ASAP.

Thanks.

  • 7499
    posted

    Hello Ahmed,

    Thank you for posting to Infragistics forums.

    Are you clearing the datasource like before in row deleting and row adding event like below:

    grd.ClearDataSource();

    grd.DataBind();

    Please let me know if you have any further questions regarding this matter.