H
Harry
Hello,
I have a DataSet built from a .XSD that contains relations. For example
consider the XML fragment below:
<Apples>
<Orange ID="A"/>
<Orange ID="R"/>
</Apples>
<Apples>
<Orange ID="QQ"/>
<Apples>
An apple row would have a relation called GetOrangeRows that returns a
strongly typed array of OrangeRows that are the child nodes of a specific
Apples row. My question is how can I get a DataGrid to only display Orange
rows that are children of a specific Apples row. If I simply set the
datagrids datasource to myDataSet.Apples[0].GetOrangeRows() I'm unable to
add or delete rows and the column headers are not what I specified them to
be. Any advice would be much appreciated.
I have a DataSet built from a .XSD that contains relations. For example
consider the XML fragment below:
<Apples>
<Orange ID="A"/>
<Orange ID="R"/>
</Apples>
<Apples>
<Orange ID="QQ"/>
<Apples>
An apple row would have a relation called GetOrangeRows that returns a
strongly typed array of OrangeRows that are the child nodes of a specific
Apples row. My question is how can I get a DataGrid to only display Orange
rows that are children of a specific Apples row. If I simply set the
datagrids datasource to myDataSet.Apples[0].GetOrangeRows() I'm unable to
add or delete rows and the column headers are not what I specified them to
be. Any advice would be much appreciated.