Click here to Skip to main content
15,911,327 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have one dataset with multiple records. i want to split 1000,1000,1000.. like partitions
in c#. can you please help any one

thanks.
Posted

1 solution

One solution is blending Take[^] with Skip[^] to have a paging functionality.
Here is an example :
http://stackoverflow.com/questions/2375379/paging-ienumerable-dataset[^]

Hope it helps.
 
Share this answer
 
Comments
K N R 24-Dec-11 0:13am    
Hi amir,
I am not mentioned size, because in dataset data assume 5000 records is there. then am split into first 1-1000 records and next 1000-2000 and so on...
like this way i want to split.
Amir Mahfoozi 24-Dec-11 0:21am    
My understanding of "then am split into first 1-1000 records and next 1000-2000 and so on... " is Paging. If there is another concept which could achieve what you want , we should wait for others to say another alternative.
K N R 24-Dec-11 0:32am    
Thanks Amir.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900