Click to See Complete Forum and Search --> : retrieve the data included in DataTable


gabrielgv
11-07-2006, 06:00 PM
Hi:

I'm programing an asp.net (VB code) which calls a web service function which returns a DataSet.

A DataTable is included in the DataSet.

How Can I retrieve the data included in the DataTable?

can I use something like an OleDbDataReader to read stream of data rows?

Thanks!

Cstick
11-07-2006, 10:07 PM
Untested.

Dim ds As DataSet = myWebService.GetData()

For Each dt As DataTable In ds.Tables
For Each dr As DataRow In dt.Rows
For Each dc As DataColumn In dt.Columns
Response.Write(dr(dc) & "<br />")
Next
Next
Next