Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

DataTableReaders (ADO.NET)

The DataTableReader presents the contents of a DataTable or a DataSet in the form of one or more read-only, forward-only result sets.

When you create a DataTableReader from a DataTable, the resulting DataTableReader object contains one result set with the same data as the DataTable from which it was created, except for any rows that have been marked as deleted. The columns appear in the same order as in the original DataTable.

A DataTableReader may contain multiple result sets if it was created by calling CreateDataReader. The results are in the same order as the DataTables in the DataSet object's Tables collection.

Creating a DataReader (ADO.NET)

Discusses how to create a DataTableReader object.

Navigating DataTables (ADO.NET)

Describes the use of the Read method to move through the contents of a DataTableReader.

© 2015 Microsoft