How to copy a specific amount of rows from a datatable to another

Hi @Allison_Cruz

Use the Expression like below

To Take n number of rows

InitialDt.AsEnumerable.Take(rowsYouneed to fetch as integer).Copytodatatable

To Skip n number of rows

IntialDt.AsEnumerable.Skip(Rows you need toSkip as Interger).CopyTodatatable

Append the TakeDt in Newdatatable

write range the SkipDt

Regards

4 Likes