How to stay on same record when Filtered property was changed?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Infomaster
Posts: 6
Joined: Mon 11 Jan 2010 13:26

How to stay on same record when Filtered property was changed?

Post by Infomaster » Fri 15 Jan 2010 08:07

Hi!

When I set Filtered property to True DataSet automatically goes to first record. How can I make it to stay in same record (which was before filtering)?

Thanks.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 18 Jan 2010 08:29

Get a value of the key field from the dataset before setting Filtered.
After filtering use the Locate method to restore the previous position.

Post Reply