![]() |
|
|
|
#1 |
|
Ray:
Hi. The DataReader has only *forward* readonly capability; and *user* indexing into the data structure is not yet available...other controls( dataGrid) can get the record count; but human users cannot... Derek LaZard "Ray Cassick (home)" <> wrote in message news:#... > If I am not mistaken, the dataReader from the V1.1 framework supports a > recordCount property now. > > "Jim Blizzard [MSFT]" <> wrote in message > news:3ef4e6a1$... > > A DataReader (doesn't matter if it's SQL, OLEDB, ORACLE, ODBC) is > read-only > > and forward-only. There's no way to scroll backwards. To get the count / > > length would require passing through the entire set of data and there > would > > be no way to get back to the beginning. > > > > You could use a DataSet instead of a DataReader. > > > > Hope this helps. > > > > -- > > Jim Blizzard > > Sr .NET Developer Specialist > > Microsoft > > > > Your Potential. Our Passion. > > > > This posting is provided "AS IS" with no warranties, and confers no > rights. > > Please reply to newsgroups only. Thanks. > > > > > > "Anandraj" <> wrote in message > > news:... > > > Hi > > > I am using OELDBDatareader I want to find the number of records in the > > > Datareader. > > > I don't find any methods like count and length. > > > Any Other way is there? > > > > > > Thanks > > > Anandraj.A. > > > > > > > > > > > > Derek LaZard |
|
|