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. Image for the cookie policy date

Delete Multiple Selected Rows from DataGrid.

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.

1 Reply

HB Heike Brackmann November 1, 2002 06:25 AM UTC

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

Live Chat Icon For mobile
Up arrow icon