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.
Unfortunately, activation email could not send to your email. Please try again.

Deleting a DataBoundGrid row

Thread ID:

Created:

Updated:

Platform:

Replies:

29331 May 23,2005 01:34 PM May 23,2005 01:38 PM Windows Forms 1
loading
Tags: GridControl
Andrew E
Asked On May 23, 2005 01:34 PM

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 01:38 PM

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.

CONFIRMATION

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.

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.

;