Reputation: 16472
Is possible delete all the records from a TClientDataset
at once?
Upvotes: 25
Views: 25155
Reputation: 136391
Yes it is possible, you must use the EmptyDataSet
procedure.
try this
ClientDataSet1.DisableControls;
try
ClientDataSet1.EmptyDataSet;
finally
ClientDataSet1.EnableControls;
end;
Upvotes: 48