delphitype-conversiontclientdatasettdataset

How can I move data from TDataSet to TClientDataSet? I need XML representation of the data


How can I easily move data from TDataSet to TClientDataSet? I need XML representation of the data in TClientDataSet.XMLData property.


Solution

  • Drop a TDataSetProvider onto the form or datamodule with the ClientDataSet, set the ClientDataSets property ProviderName to the name of the TDataSetProvider. Set the DataSet property of the TDataSetProvider to the other dataset. Open the ClientDataSet.