How to remove the Datarow from DataTable using For Each row

Hi
We won’t able to delete the rows while looping as it would through target of invocation error
But still we can store the row index in a list(of int32) variable so that once after the loop we can use a separate loop to delete those rows
Here you go with an example

Cheers @saransrs

1 Like