How to delete datarow where Column Value is equal to a string. Inside a for each loop

So I was trying to remove a datarow inside a For each row loop if something gave an error. Sadly, it gives the collection was modified error. So I decided to get all the Column 1 values that had an error, since each value of it is unique. Now, I am trying to remove the rows by doing something like.

For Each Item in List of Errors
Delete Row Where Item Is Equal to Row(0)

Is there a work around here? Thank you.

HI @Archie

you can try with Filter Datatable Activity

Regards
Sudharsan

2 Likes

Thanks. I was gonna do a LINQ one, but I forgot that I can do it this way.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.