Page 1 of 1

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

Posted: Fri 15 Jan 2010 08:07
by Infomaster
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.

Posted: Mon 18 Jan 2010 08:29
by Plash
Get a value of the key field from the dataset before setting Filtered.
After filtering use the Locate method to restore the previous position.