Hey,
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. ???!!
Hey,
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. ???!!
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)