N/APosted on - 07/21/2012
I am using webdatagrid to bind my columns, but when doing so, I am met with an error. This error occurs when I try to update the third row of the same cell. I have no problems when clicking the first and second rows. They work well, but on clicking the third row, I get an error:
'Async request failed [MissingRecordException]: Requested record cannot be found by key'
The screenshot of the error is attached below:
Please guide me how to remove this error. I'll be really thankful for your suggestions.
Looking forward to hear from you soon.
Error while using webdatagrid to bind my columns
What I will recommend that you do in this case is to try clearing the grid's datasource and then after that you should rebind it once the dynamic filtering has been successfully applied. The following is something similar that will help you a great deal in going about this process:
WebDataGrid1.DataSourceID = SqlDataSource1.ID;
In case the above fix does not, then try the following:
First you will need to set the datakeyfield property of your grid,
And then after that you will need to set a primary key column on your datasource.
Once you set the primary key the error should not appear again.