I would like to clarify one doubt. In my current project I find that there are two TClientDataSet components. And one client dataset's properties and event handlers are assigned to another client dataset as below:
cds2.AfterApplyUpdates := cds1.AfterApplyUpdates;
cds2.AfterCancel := cds1.AfterCancel;
cds2.AfterClose := cds1.AfterClose;
And
cds2.CommandText := cds1.CommandText;
cds2.AutoCalcFields := cds1.AutoCalcFields;
cds2.DisableStringTrim := cds1.DisableStringTrim;
Is the above assignment of event handlers and properties required?
If we simply assign one client dataset to another as shown below, isn't it enough?
cds2 := cds1;