Cannot perform this operation on a row not in the table - Delete a row

2 replies. Last post: May 20, 2010 10:13 AM by Michael C
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Michael CMember

Hi,

I have a basic scenario where a grid is databound in the code behind to a dataset containing one datatable, when I try to delete a row from the UI, I get a javascript alert with the following message:

Cannot perform this operation on a row not in the table.

Upon inspecting the cached datasource on postback, I noticed that the row has been deleted but not the UI side, the row still shows up. If I try re-deleting row, an exception is thrown this time.

 

This behavior does not happen when the row is first edited, then deleted or if a new row is added, then the same newly added row deleted, if any original row is deleted, it triggers this error.

 

Any help would be appreciated. Please see attached code.

Thanks

Michael

 

All times are GMT -5. The time now is 10:24 AM.
Previous Next