Solved

Datareader move top again

Posted on 2004-10-01
3
285 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
Comment Utility
Datareader is forward only. You can not go back to the begining. Use DataSet.
-BAan
0
 

Author Comment

by:vbhaha
Comment Utility
I see, thanks.
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
Comment Utility
very good... but why "C" ???
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now