Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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? :confused:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...