Results 1 to 3 of 3

Thread: Can DataGridView show multi-levels

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2009
    Posts
    258

    Question Can DataGridView show multi-levels

    I want to use a DataGridView to show parent-records that are expandable to show children records. Basically, the top-level data shows class names, and expanding each class name shows the students enrolled in that class... that kind of thing.

    Can the DataGridView control do that, or do I need to use the TreeView control?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can DataGridView show multi-levels

    The DGV cannot do that by default. You could make it do so with some heavy modification but that would be a daunting task. There would be third-part grids that could do it, maybe inheriting the DGV and providing that heavy modification or built from scratch.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Can DataGridView show multi-levels

    A DataGridView cannot show multiple levels as done say in MS-Access. You can look at OutlookGrid at Code Project which is in C Sharp but usable in VB.NET.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width