How to remove the Datarow from DataTable using For Each row

i want delete rows from the Data table…while looping through

1 Like

Hi @saransrs

This article might be helpful to you.

cheers :smiley:

Happy learning :smiley:

3 Likes

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

Thank You…

1 Like

Cheers @saransrs

hi @Palaniyappan

can you help me on this?