I have a dataset that contains a parent table and a child table. A
DataRelation exists between the two. I was under the impression from
reading the VS docs that when I filled the parent table, the child
table would be automatically filled with the child records. When I fill
the parent, I limit the table to only a single record, so that all the
records in the child table will belong to this parent. But when the
Fill method is executed with the parent, the child table is not filled.
All the coding examples I've seen use the GetChildRows method to
retrieve the child records. I find this rather absurd when I've defined
a DataRelation that explicitly links the parent to the child. If the
GetChildRows is not called, does that mean it is possible to have data
stored in the child table unrelated to data stored in the parent? If
so, what is the sense of having a DataRelation? Furthermore, the
GetChildRows returns the records in an array. This does not fill the
child table in the DataSet. If I understand correctly, to fill the
table, only the Fill command can be used.
Johann Blake