tdatasetprovider

Faster way to move data from a dataset structure to another (in TDatasetProvider)

允我心安 提交于 2019-12-08 15:11:20
问题 I have an custom TDatasetProvider that allows to create new fields to whatever data it provides. So, let's say you got the folowing fields on the original dataset: CustomerId Name Age And you need to select it on DBGrid using showing an Bitmap. Well, you can since my DSP can add an boolean field called Selected to the dataset data. The way I do that now: Create 2 TClientDataset objects (Origin and Target) In Origin, I load the data got from the parameters of the InternalGetRecords method (I