none
POPULATING A CHILD TABLE IN DATASET RRS feed

  • Question

  • I am designing my first DataSet which consists of 2 DataTables (with their respective TableAdapters). One is a parent datatable and the other is a child datatable so let's name them dtParent and dtChild.

    dtParent is filled with data from a database and depends on a parameter in the WHERE clause.
    dtChild should be filled depending on a field value of dtParent.
    I have defined a relation between these datatables.

    How do I reference the parent DataTable's primary key in the child DataTable TableAdapter query? or
    How do I fill the child datatable which depends on a field of the parent table?

    With respect,
    Jorge Maldonado
    Friday, November 6, 2009 11:41 PM

Answers