Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to delete a group of rows from a datatable?
Message
From
11/12/2007 08:33:25
John Baird
Coatesville, Pennsylvania, United States
 
 
To
11/12/2007 03:50:37
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01274269
Message ID:
01274747
Views:
13
>Thank you Cetin,
>
>I've solved it, but think you're solution is more like it should be.
>


Joaquim,

You need to be carefuol though, .Select is a performance killer if your deletes are called from inside looping structures. We had to switch from .Select to a foreach logic because the .select slowed down program execution terribly.

We had a loop that was using a .select which when profiled was doing .select over 1 million times. The app took over 3 hours to run.

So just be careful and use it when it makes sense.
Previous
Reply
Map
View

Click here to load this message in the networking platform