VB
Topic: Re: Dataset + datatables

Ireland .NET Developer Alliance :: Forums

Page 1 of 1 (2 items)


Posted by mike55 on 04-01-2005 11:21
Hi

Have a dataset with a table in it. Need to loop through this table and select the value of cell(1) from the table.

Have tried the following
Code:
For Each selIndex In dsDataset.Tables(page).Columns(0) Next
The error I am getting is:Expression is of type 'System.Data.DataColumn', which is not a collection type.

Mike55.

Posted by gavinjoyce on
For Each row as DataRow in dsDataSet.Tables(0).Rows
    Trace.Write("The first column in the row is : " & row.Columns(0) & ".")
Next