Error while using webdatagrid to bind my columns

Asked By 80 points N/A Posted on -
qa-featured

 

Hello guys,

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.

Kindest regards.

SHARE
Answered By 10 points N/A #151088

Error while using webdatagrid to bind my columns

qa-featured

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.ClearDataSource();
  • WebDataGrid1.DataSourceID = SqlDataSource1.ID;
  • WebDataGrid1.DataBind();

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.

Regards,

Carl

 

Related Questions