Search code examples
c#ado.netdatasetdatareader

How can I convert DataSet a to a DataReader?


How can I convert a DataSet to a DataReader?


Solution

  • You can use the following code to change dataset to DataReader:

    DataTableReader rd = ds.Tables[0].CreateDataReader();