G
gzinger
I have a collection of objects (say Customers for example). Each Customer
Object has a collection of orders. When I bind such complex type to datagrid
control I see the first level fields (fields of customer class) fine and I
see a link to orders, but when I click on the link it shows no records, as I
would expect.
If I bind a DataSet with the same structure then the result is as expected.
So, I know that there is a way. I just need to find out how.
I suspect I need to implement some interface on my Orders collection. Is
that the case? Which interface would it be? Or maybe there is some attribute
that I need to front my class with? Any ideas would be greatly appreciated.
Thank you.
Object has a collection of orders. When I bind such complex type to datagrid
control I see the first level fields (fields of customer class) fine and I
see a link to orders, but when I click on the link it shows no records, as I
would expect.
If I bind a DataSet with the same structure then the result is as expected.
So, I know that there is a way. I just need to find out how.
I suspect I need to implement some interface on my Orders collection. Is
that the case? Which interface would it be? Or maybe there is some attribute
that I need to front my class with? Any ideas would be greatly appreciated.
Thank you.