Can TClientDataSet Nested (one-to-many) DataSets be created at runtime? Is there any code that shows how to do this?
Thanks,
Bill
Can TClientDataSet Nested (one-to-many) DataSets be created at runtime? Is there any code that shows how to do this?
Thanks,
Bill
What do you mean? A client dataset is a single table. But you can create a field which contains another clientdataset (which must be extracted to be used).
Creating a one-to-many relationship isn't all that difficult. It can be done at design-time or at runtime:
Nesting DataSets in ClientDataSets by Cary Jensen should answer your question. Also look for other articles on this site by Cary for more information on ClientDataSets.