We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Deleting a DataBoundGrid row

Thread ID:





29331 May 23,2005 05:34 PM UTC May 23,2005 05:38 PM UTC WinForms 1
Tags: GridControl
Andrew E
Asked On May 23, 2005 05:34 PM UTC

I am trying to delete a user selected row from my grid, It seems to delete fine but then I must iterate through the remaining rows to change to "Stage Number" which is a col in the row. I get an "DeletedRowInaccessibleException", why is it still trying to access this row in the DataTable if it has been deleted?

Administrator [Syncfusion]
Replied On May 23, 2005 05:38 PM UTC

Try calling DataTable.AcceptChanges before you iterate through your DataTable to see if that will take care of this problem. If you do not want to do this for some reason, then you should check the DataRow.RowState on each DataRow before working with it to make sure it has not been deleted.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon