G
Guest
Can someone try and explain detail to me of how they would begin to tackle
the following scenario:
I would like to display two EDITABLE datagrids:
1. The "master grid" - contains people's information - name, title, job
description, etc. Some of these columns will be IDs to other lookup-type
tables (such as Title) and I will want to display the text of and allow
editing via drop-down.
2. The "detail grid" - contains the email address information for the
person selected in the current row above. This, too has columns containing
IDs to other lookup-type tables (such as what report gets sent to this e-mail
address).
Before I brainwash anyone by explaining the ways I've attempted to do this
(to no avail), I was hoping someone has done something similar and would shed
some light on how they'd done it in the past. My recurring problems seem to
be dealing with the "autonumber" (ID) columns in the database and retrieving
the SQL Server-generated Identifier used during an Insert/Update of the
"Master" and having that cascade through to the "Detail" children.
Note that many different people could be running this application and adding
records, so we cannot (solely) rely on any autonumbering system that we set
up in the various DataTable columns.
the following scenario:
I would like to display two EDITABLE datagrids:
1. The "master grid" - contains people's information - name, title, job
description, etc. Some of these columns will be IDs to other lookup-type
tables (such as Title) and I will want to display the text of and allow
editing via drop-down.
2. The "detail grid" - contains the email address information for the
person selected in the current row above. This, too has columns containing
IDs to other lookup-type tables (such as what report gets sent to this e-mail
address).
Before I brainwash anyone by explaining the ways I've attempted to do this
(to no avail), I was hoping someone has done something similar and would shed
some light on how they'd done it in the past. My recurring problems seem to
be dealing with the "autonumber" (ID) columns in the database and retrieving
the SQL Server-generated Identifier used during an Insert/Update of the
"Master" and having that cascade through to the "Detail" children.
Note that many different people could be running this application and adding
records, so we cannot (solely) rely on any autonumbering system that we set
up in the various DataTable columns.