Can Dataset filtering be performed from outside the dataset?

I have two TDBLookupComboBox controls that I would like to connect to the same dataset, but each displays a different subset of the dataset. If I only need one box, I would use filtering on the dataset, but I needed to display both of them at the same time, and I don't know how. Does anyone know if this can be done, and if so, how?

-1


source to share


1 answer


If you are using a TClientDataSet, you can clone the cursor (TClientDataSet.CloneCursor) into another TClientDataSet that does not have a ProviderName property. Both ClientDataSets now point to the same data in memory, but can have their own filters.



+8


source







All Articles