M
Marco Ippolito
Hi,
I have a typical Products->OrderDetails->Orders type many-to-many
relationship expressed through a junction/x-ref table in a DataSet.
How do I get a DataView of relevant Orders starting from a given Product
row, using existing indexes and sorting results by an arbitrary column
belonging to the Orders table?
GetChildRows returns an array which I would need to sort separately with
Array.Sort, right? CreateChildView returns a DataView which I can sort
either directly or through my DataViewManager, but it won't sort the
intermediate results in the junction table based on a field from the
Orders table; again I would need to do that with some additional code,
right?
I would like to do this as elegantly as possible.
Do the Framework classes offer something like
"productDataRow.CreateChildView("many_to_many_relation_crossing_the_junction_table").Sort
= "SomeFieldFromOrdersTable" ?
Thanks very much for your help.
Marco
I have a typical Products->OrderDetails->Orders type many-to-many
relationship expressed through a junction/x-ref table in a DataSet.
How do I get a DataView of relevant Orders starting from a given Product
row, using existing indexes and sorting results by an arbitrary column
belonging to the Orders table?
GetChildRows returns an array which I would need to sort separately with
Array.Sort, right? CreateChildView returns a DataView which I can sort
either directly or through my DataViewManager, but it won't sort the
intermediate results in the junction table based on a field from the
Orders table; again I would need to do that with some additional code,
right?
I would like to do this as elegantly as possible.
Do the Framework classes offer something like
"productDataRow.CreateChildView("many_to_many_relation_crossing_the_junction_table").Sort
= "SomeFieldFromOrdersTable" ?
Thanks very much for your help.
Marco