Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to fill a collection using Datareader, but without loop
Posted
Comments
pradiprenushe 29-Mar-13 8:28am    
why so? Is is not possible as per my understanding otherwise you have to hardcode for no of rows present in data reader.

1 solution

Use DataAdapter to fill DataTable by calling its Fill Method
 
Share this answer
 
Comments
madhubsu@gmail.com 29-Mar-13 9:03am    
Thanks for your reply. But here I can use only datareader. I can't use disconnect method

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