• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • 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

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

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