FrankThynne
Technical User
I'm converting an application to use TClientDataset to cache updates. Generally it works well (although I get exceptions - eg write to illegal address - on exiting the app). The big bonus is that refreshing the dataset really works, including fetching data from the right rows of joined tables.
However, with some datasets, refreshing the whole dataset after posting a change is unacceptably slow, so I'm trying to use RefreshRecord to refresh just the current row. But I always get an exception: "Unable to find record. No key specified".
How do I specify a key?
However, with some datasets, refreshing the whole dataset after posting a change is unacceptably slow, so I'm trying to use RefreshRecord to refresh just the current row. But I always get an exception: "Unable to find record. No key specified".
How do I specify a key?