Convert datareader from datatable
C#
3
Posts
3
Posters
0
Views
1
Watching
-
how we can create a datareader from a datatable. please suggest any way to solve this problem.
DataTable dt = new DataTable(); DataTableReader dr = new DataTableReader(dt);
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
-
how we can create a datareader from a datatable. please suggest any way to solve this problem.
A datareader from a datatable? Are you talking about System.Data.DataTable class?? If its your case I suggest two ways: 1.Make a forecach loop through DataTable.Rows and make anything foreach row. 2.To complement the upper suggestion use DataTable.Select('where clause') and store DataRow[] result in a var and make a foreach loop on this DataRow[].
Visit my blog at http://dotnetforeveryone.blogspot.com