C
Claudiu Tomescu
Hi,
After hours of frustration digging for an answer I decided to post this
message concerning my GetChildRows and DataRelation problem.
What I'm trying to do is to use a DataSet to fetch data from 3 tables and
then using relations to navigate parent-child records.
First I created an XSD file using VS and then I load this schema into my
DataSet using the ReadXmlSchema() method. Note that I DO NOT want to use the
typed DataSet generated automatically by VS.
After loading the schema into the DataSet I fetch data using an DataAdapter.
So far everyting is fine: I'm writing into an XML file the DataSet's tables
content for check; and the DataRelations and primary/foreign key are
correctly created.
Now if I try to navigate the parent's rows and use the GetChildRows() to
retrieve the corresponding child records, the GetChildRows() returns no
data; and believe me I use the correct relation, cause exactly the same code
works with the typed DataSet generated using the same XSD file.
If someone has any ideas where the problem might be, please don't hesitate.
Thank you in advance
Claudiu
After hours of frustration digging for an answer I decided to post this
message concerning my GetChildRows and DataRelation problem.
What I'm trying to do is to use a DataSet to fetch data from 3 tables and
then using relations to navigate parent-child records.
First I created an XSD file using VS and then I load this schema into my
DataSet using the ReadXmlSchema() method. Note that I DO NOT want to use the
typed DataSet generated automatically by VS.
After loading the schema into the DataSet I fetch data using an DataAdapter.
So far everyting is fine: I'm writing into an XML file the DataSet's tables
content for check; and the DataRelations and primary/foreign key are
correctly created.
Now if I try to navigate the parent's rows and use the GetChildRows() to
retrieve the corresponding child records, the GetChildRows() returns no
data; and believe me I use the correct relation, cause exactly the same code
works with the typed DataSet generated using the same XSD file.
If someone has any ideas where the problem might be, please don't hesitate.
Thank you in advance
Claudiu