Re: Dataset + datatables
VB
Thread Starter: mike55
Started: 04-01-2005 11:21
Replies: 1

Ireland .NET Developer Alliance :: Forums » Technologies » VB » Re: Dataset + datatables
« Previous Thread Next Thread »
   01 Apr 2005, 11:21
mike55 is not online. Last active: 28/04/2005 17:04:02 mike55

Top 10 Posts
Joined on 01-20-2005
Posts 13
Dataset + datatables
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.

  
   04 Apr 2005, 6:46
gavinjoyce is not online. Last active: 15/04/2005 13:52:56 gavinjoyce

Top 25 Posts
Joined on 04-04-2005
Posts 2
Re: Dataset + datatables
For Each row as DataRow in dsDataSet.Tables(0).Rows
    Trace.Write("The first column in the row is : " & row.Columns(0) & ".")
Next


 
    
  Page 1 of 1 (2 items)
Ireland .NET Developer Alliance :: Forums » Technologies » VB » Re: Dataset + datatables

Powered by Community Server :: Forums