Hi all,

I'm learning VB.net and have a question..

I'm trying database access at the moment, and so far have managed to create
and fill a dataadapter. I can then bind that to a windows control ok and
see/naviagte the records.

Question is: How do I navigate through the datadapter in code? eg loop
through each row to store a record into an array.

Thanks!

Re: Newbie question : looping through records... by James

James
Mon Oct 25 10:01:22 CDT 2004


"Nick" <Nick@NTWorks.no.spam.fsnet.co.uk> wrote in message
news:%23SeMSEquEHA.1392@tk2msftngp13.phx.gbl...
> Hi all,
>
> I'm learning VB.net and have a question..
>
> I'm trying database access at the moment, and so far have managed to
> create and fill a dataadapter. I can then bind that to a windows control
> ok and see/naviagte the records.
>
> Question is: How do I navigate through the datadapter in code? eg loop
> through each row to store a record into an array.
>
> Thanks!
>

best way to read records is by using the DataReader object - it will allow
you forward only read only (faster)