Click here to Skip to main content
15,912,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to Convert Linq result set to Datatable without looping?

Please help me.
Posted

How about using CopyToDataTable

http://msdn.microsoft.com/en-us/library/bb386921.aspx[^]
 
Share this answer
 
Comments
Rajesh Anuhya 30-Jan-12 6:06am    
Good answer +5
This will help u

http://www.c-sharpcorner.com/uploadfile/VIMAL.LAKHERA/convert-a-linq-query-resultset-to-a-datatable/[^]

Sample I is with loop
and
Sample II is without loop
 
Share this answer
 

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