Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Hi All,

I have a datagridview control which populate from my object collections, then each objects have a property that consist of another object collection.
Something like:
C#
public class Header
    {
        private int ID;
        private string formName;
        private DateTime dateLog;
        private string parentIdentifier;
        private string childIdentifier;
        private List<Details> logDetails = new List<Details>();
    }


Question:
Is there any way to expand/collapse datagridRow like treeview to view the child object collection?

Is this posible using datagridview control??

Or is there any other way to view both the Collection Parent objects and the collection of Child objects.

My Propersor don't allow me to use datasets.
Anyone can please help me.
Thanks,
Posted
Updated 14-Jun-11 23:42pm
v2

1 solution

Try this msdn article. Hope this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900