English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I would like to convert into a DataView, or a DataTable, but it doesn't convert directly.

2006-09-01 05:29:19 · 1 answers · asked by Raalnan5 2 in Computers & Internet Programming & Design

1 answers

Hi,

The enclosed link explains how to achieve this. Basically, you can convert an DataAdaptor into a DataSet (which is a group of DataTables) instead of a DataReader. If your query was simple, as it would have to be if you were only expecting a single DataTable to be generated, you can merely access the DataTable you seek with

DataSet ds = new DataSet; //Used as example for naming
DataTable dt = ds.tables[0]; //Used as example for naming

Hope this helps,

Leo

2006-09-01 13:48:07 · answer #1 · answered by Leo R 2 · 0 0

fedest.com, questions and answers