T
Tom
Is there any kind of FIND in ADO.NET that works the same way as the old ADO
Recordset FIND? The old ADO Find would accept a criteria string, and then
find the first record that matches the criteria. For instance,
rs.Find("text_value like '* | *')
would position me on the first record that contained a bar (' | '). It
didn't filter anything, but just positioned the database at that record (or,
in ADO.NET, would give me the row index of the first record matching this
criteria).
I see SELECT on a datatable and ROWFILTER on a dataview, but these all
filter... I simply want to find the first record matching this criteria.
I can probably get around it by simply reading all the records and
programatically searching for the first one that matchs, but was hoping for
a built-in solution.
Thanks in advance.
Tom
Recordset FIND? The old ADO Find would accept a criteria string, and then
find the first record that matches the criteria. For instance,
rs.Find("text_value like '* | *')
would position me on the first record that contained a bar (' | '). It
didn't filter anything, but just positioned the database at that record (or,
in ADO.NET, would give me the row index of the first record matching this
criteria).
I see SELECT on a datatable and ROWFILTER on a dataview, but these all
filter... I simply want to find the first record matching this criteria.
I can probably get around it by simply reading all the records and
programatically searching for the first one that matchs, but was hoping for
a built-in solution.
Thanks in advance.
Tom