0
Posted on 10:09 AM by prajeesh and filed under
In some situations you may need to convert your data table to data reader, suppose you have a Data table named dt and etDataFromDB() is a function that returns a data table, here is the steps to convert data table to data reader.
DataTable dt = new DataTable();
dt = getDataFromDB();
DataTableReader dtr;
dtr = dt.CreateDataReader();
while (dtr.Read())
{
//Do your tasks

} Shout it kick it on DotNetKicks.com
0
Responses to ... Convert data table to data reader