• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

Datareader move top again

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
vbhaha
Asked:
vbhaha
  • 2
1 Solution
 
DotNetLover_BaanCommented:
Datareader is forward only. You can not go back to the begining. Use DataSet.
-BAan
0
 
vbhahaAuthor Commented:
I see, thanks.
0
 
DotNetLover_BaanCommented:
very good... but why "C" ???
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now