I have an data table(dt1) of 40 records,copy first 20 records to another data table(dt2) and do some transactions on dt2 and remove first 20 records from dt1 and copy next 20 records to dt2.
How can we achieve this …for copying to datatable we can use
Dt2=Dt1.AsEnumerable().Take(20).CopyToDataTable()
how can we do deleting top 20 records from Dt1 at a time?