Home › Forums › WinForms controls › Xceed Grid for WinForms › How do I delete multiple rows › Reply To: How do I delete multiple rows
That’s the trouble with coding blind…you always forget the simpliest things!
If you were to try and execute the code I posted – you’re going to get a runtime error (sorry about that ! )
Why? Because the collection (SelectedRows) will become modified the instant you perform a remove on the DataRows collection…and that will cause the For…Next loop to fail.
I’m working on a solution to this right now – and would have edited my previous post instead of adding this new one…but since I could not, this’ll have to do!
-LK
Imported from legacy forums. Posted by Curtis (had 708 views)