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
285
Requested record cannot be found by key
posted

Hi  Infragistics,

    I have a Webdatagrid in an AJAX ModalPopup with a asp:DropDownList above the grid.  What the user has to do is to select a picklist in the asp:DropDownList and the picklist items will be shown in the Webdatagrid.  If the user select any of the picklist in the asp:DropDownList without doing any modification in the grid or modify something AND push the save button, there will have no problem.  The issue appears when the user add a new row and add an item or modify a current row and choose another picklist without save anything.  A message will be show:

Requested record cannot be found by key

   Is there something I miss?

                             Thanks in advance!

                                                   Christ1

Parents
  • 12679
    posted

    Hello Christ1,

    Please assign a column key to DataKeyFields property, it must be unique for the grid data. The grid needs of such identifier in order to work correctly.  Usually  the primery key of the database table that the grid is boud to is used as  DataKeyFields .  Keep in mind that Sorting, Filtering, Selection, Editing, almost all grid behaviors(features), rely on unique datakeyfield.

    Hope this heps.

Reply Children