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
40
Requested record cannot be found by key on Binding Grid
posted

I have to bind the WebDataGrid on SelectedIndexChanged event of Dropdownlist from the Masterpage.   After done a updating in the grid if try to change the value of combo in the dropdownlist to the bind the grid a error  'Requested Record cannot be found by key'  is coming. I am using entity framework model to bind the grid.


Parents
  • 37874
    posted

    Hi Shanthi Kasthuri,

    I would suggest you to try clearing the datasource and calling the DataBind method when changing the selection of the combo:

    WebDataGrid1.ClearDataSource();

    WebDataGrid1.DataSource = DataSource1;

    WebDataGrid1.DataBind();

    Please let me know if this helps.

     

Reply Children
No Data