One way to do this would be to use calculated fields.
You create one calculated field and in the OnCalcField event set the value.

It`s the easy way. Or you could fiddle with the the FieldDefList 
collection property, but that`s too much for me.



Alan Colburn wrote:
> Hi folks --
>
> Suppose I had a ClientDataSet to which I'd added fields, records, and saved 
> to an (XML) file. After loading the file later I then wanted to add a *new* 
> persistent field to the already existing data set. How would I go about doing 
> this? (If it matters, feel free to assume the GUI has a dbGrid.)
>
> Thanks, as always -- Al
> _________________________________________________________________
> Type your favorite song.  Get a customized station.  Try MSN Radio powered by 
> Pandora.
> http://radio.msn.com
> _______________________________________________
> Delphi-DB mailing list
> Delphi-DB@elists.org
> http://www.elists.org/mailman/listinfo/delphi-db
>
>
>   

_______________________________________________
Delphi-DB mailing list
Delphi-DB@elists.org
http://www.elists.org/mailman/listinfo/delphi-db

Reply via email to