Solved

Datareader move top again

Posted on 2004-10-01
3
290 Views
Last Modified: 2012-06-27
How to move the row pointer to top again from a datareader ?

For example :

Do While dr.Read()
     MsgBox(dr(1))
Loop

'move to top again

Do While dr.Read()
     MsgBox(dr(2))
Loop

Thanks
0
Comment
Question by:vbhaha
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 250 total points
ID: 12205858
Datareader is forward only. You can not go back to the begining. Use DataSet.
-BAan
0
 

Author Comment

by:vbhaha
ID: 12205912
I see, thanks.
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 12205927
very good... but why "C" ???
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question