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.

Delete Multiple Selected Rows from DataGrid.

Thread ID:

Created:

Updated:

Platform:

Replies:

1434 Oct 29,2002 08:09 AM Nov 1,2002 01:25 AM Windows Forms 1
loading
Tags: FAQ
Ramesh Sreedhar
Asked On October 29, 2002 08:09 AM

I am trying to Delete multiple selected rows from a DataGrid. I used the CurrencyManager and BindingContext Objects to Ctype the DataGrid.Datasource into a DataView. Then I am trying to scroll through my DataGrid and by using the IsSelected() method find and Delete the Selected Rows by using the RemoveAt method of the CTyped DataView. But once it removes a row, all the other Selected Rows in the DataGrid become DeSelected and remains there without being deleted. Can u help me with this.

Heike Brackmann
Replied On November 1, 2002 01:25 AM

I had the same problem. Now I save the selected Rows (the specific information) in a own type and then go through my list, deleting the rows. Hope this helps

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.

;