R
Richard L Rosenheim
I have a dataset containing a parent table related to a child table. The
child table contains an ID field (which is configured as autonumber in the
datatable), the ID of the parent, plus some addition fields.
I'm able to get the datagrid to be properly populate with only the child
records relating to the specified parent by setting the
..DefaultView.RowFilter property.
Currently, to properly add a new child record, I need to manually enter in
the value of the parent's ID. As I'm planning on hiding this column (since
the end user won't know or care about this value), I'm looking for a way of
getting the datagrid to assign the parent's ID automatically. I'm pretty
sure there's a way, but I haven't been able to find any documentation that
explains how to do it. Nor do I see any obvious events in the datagrid
control to tap into. I've tried checking my .Net programming books, and
searching Google, MSDN, etc. to no avail. Can someone please point me to
the appropriate documentation/tutorial/example/etc.?
TIA,
Richard Rosenheim
child table contains an ID field (which is configured as autonumber in the
datatable), the ID of the parent, plus some addition fields.
I'm able to get the datagrid to be properly populate with only the child
records relating to the specified parent by setting the
..DefaultView.RowFilter property.
Currently, to properly add a new child record, I need to manually enter in
the value of the parent's ID. As I'm planning on hiding this column (since
the end user won't know or care about this value), I'm looking for a way of
getting the datagrid to assign the parent's ID automatically. I'm pretty
sure there's a way, but I haven't been able to find any documentation that
explains how to do it. Nor do I see any obvious events in the datagrid
control to tap into. I've tried checking my .Net programming books, and
searching Google, MSDN, etc. to no avail. Can someone please point me to
the appropriate documentation/tutorial/example/etc.?
TIA,
Richard Rosenheim