Link to home
Start Free TrialLog in
Avatar of developmentguru
developmentguruFlag for United States of America

asked on

Client dataset dumping records on set of IndexName

I have been working on a bit of code that loads data from 5 sources into a client dataset.  The data can then be indexed and manipulated to update the screen.  I ran into a spot in my code, while debugging, that set the CDS FilterName.  This should not be a problem but I noticed a watch I had setup to display the RecordCount property went from 1 to 0.  Can anyone tell me why a client dataset would behave like that?
Avatar of Ephraim Wangoya
Ephraim Wangoya
Flag of United States of America image

RecordCount returns the count of records in the active view. Any record filtered out is not part of the count hence the difference in numbers.
ASKER CERTIFIED SOLUTION
Avatar of developmentguru
developmentguru
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi developmentguru

Sorry could not keep up

How do you delete the records in the client dataset?
Have you tried
ClientDataset1.EmptyDataSet;
Avatar of developmentguru

ASKER

No other solution was provided.  This is a solution, but I would have preferred a way of getting it to work without recreating the client dataset.