DimkaNewtown
Freshman
With generics in 2.0 it's easy to databind the custom object collections to controls that support databinding. However I have hit a snag.
If you databind a dataset to a DataGridView control which has two tables with relationships setup between them, the DataGridView will generate a little "+" next to the row which will let you drill down into the actual details of the child table (you can see this functionality in the XML editor in VS).
However, I have a generic collection of custom objects for which I want to display the same or similar functionality and so far I have not figured out a solution for this. I was hoping for an interface that would let me specify the relationship between my objects but I have yet to find it (if it exists at all).
This is all in a WinForms application.
Any ideas?
If you databind a dataset to a DataGridView control which has two tables with relationships setup between them, the DataGridView will generate a little "+" next to the row which will let you drill down into the actual details of the child table (you can see this functionality in the XML editor in VS).
However, I have a generic collection of custom objects for which I want to display the same or similar functionality and so far I have not figured out a solution for this. I was hoping for an interface that would let me specify the relationship between my objects but I have yet to find it (if it exists at all).
This is all in a WinForms application.
Any ideas?