Does your database support default values, or does the table component include an OnNewRecord Event? Either of these two methods can allow you to set up as few or as many of the data values you may wish to be displayed as soon as the user clicks the "Add" or "Insert" command. While each is still editable of course allowing the user to alter them to his particular needs.
from Robert Meek dba Tangentals Design CCopyright 2006 Proud to be a moderator of "The Delphi Lists" at elists.org (["An unused program is the consequence of a higher logic!", nil]) As written in The Compendium of Accepted Robotic and Surrlogic Theorems Used in the Self Analysis of Elemental Positronic Pathways...1st Edition Revised -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan Colburn Sent: Tuesday, December 05, 2006 12:17 PM To: [email protected] Subject: Nested DataSets: Loading a Template File Hi folks -- I'm writing an application with nested (client) datasets, and I am displaying the child dataset in a grid. When a new parent record is to be created I would like the child dataset grid to show a template file, i.e., an already existing XML database file that I have created. I have a hunch this isn't difficult, but I don't know how to do it ... Just to be sure what I'm asking about is clear, whenever a new record is to have data entered I'd like the DBGrid (which is in turn linked to a data field of the parent dataset) to display not only columns (datafields) but also several partially filled in rows (records). Thanks, as always -- Al C. _________________________________________________________________ Express yourself with gadgets on Windows Live Spaces http://discoverspaces.live.com?source=hmtag1&loc=us _______________________________________________ Delphi-DB mailing list [email protected] http://www.elists.org/mailman/listinfo/delphi-db _______________________________________________ Delphi-DB mailing list [email protected] http://www.elists.org/mailman/listinfo/delphi-db
