Can I perform For each row on just a selected Range from my DT?

Can I perform For each row on just a selected Range from my DT? for example if I have a datatable with 1000 row and I want to do for each row just for the rows range 200 to 400.

Hi @aboodhk,

You can do this using an assign statement use the below condition

Suppose you have a datatable which has 1000 rows and you want only rows from 200 to 400

Datatable.Asenumerable.skip(200).take(200).copytodatatable and store this output in datatable variable.

Now in your new datatable you have records from 200 to 400 and you can use for each now on this datatabel.

2 Likes