How can I go back to the previous row using OleDbDataReader.
I know that DataReader just advance to the next row using DataReader.Read(), but how can I go back to the previous row. ???!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t. The DataReader API was specifically designed to only allow forward iteration. If you need the previous row, you should cache it yourself, or use something else (like dump the DataReader into a DataSet)