Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to make a hierarchical gridview???

How to make a hierarchical gridview???

Scheduled Pinned Locked Moved Visual Basic
helpdatabasetutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meki_2118
    wrote on last edited by
    #1

    hi, I,m trying to create a hierarchical view of the data in my database using a gridview but the problem is every time I load the data to the gridview, they will just file in single line. Can you help me to arrange my data in a hierarchical form? thank a lot.

    D N 2 Replies Last reply
    0
    • M meki_2118

      hi, I,m trying to create a hierarchical view of the data in my database using a gridview but the problem is every time I load the data to the gridview, they will just file in single line. Can you help me to arrange my data in a hierarchical form? thank a lot.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You'll need a third party grid to do this. The DataGridView in the .NET Framework does not support this. I suggest looking into DevExpress' control sets.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      T 1 Reply Last reply
      0
      • M meki_2118

        hi, I,m trying to create a hierarchical view of the data in my database using a gridview but the problem is every time I load the data to the gridview, they will just file in single line. Can you help me to arrange my data in a hierarchical form? thank a lot.

        N Offline
        N Offline
        Nanda_MR
        wrote on last edited by
        #3

        you can try this method. take max. column in datagridview and make visible false and load the data into last col. then u can use visible option true when u increase the hierarchical view. Sorry for any grammar mistake.

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          You'll need a third party grid to do this. The DataGridView in the .NET Framework does not support this. I suggest looking into DevExpress' control sets.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          T Offline
          T Offline
          Tom Deketelaere
          wrote on last edited by
          #4

          actually if I understand what he means with hierarchical gridview it is possible although not easy. have a look at this http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft. But as you suggested the DevExpress controls are easyer to use and have alot more options.

          D 1 Reply Last reply
          0
          • T Tom Deketelaere

            actually if I understand what he means with hierarchical gridview it is possible although not easy. have a look at this http://blogs.msdn.com/markrideout/archive/2006/01/08/510700.aspx I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft. But as you suggested the DevExpress controls are easyer to use and have alot more options.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Tom deketelaere wrote:

            I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft.

            Yeah, I couldn't figure that one out either, and here we are, on the cusp of .NET 4.0 and we still can't do it easily.

            Tom deketelaere wrote:

            But as you suggested the DevExpress controls are easyer to use and have alot more options.

            It's much easier to do it with a control that was designed for it from the start than to hack it together.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            T 1 Reply Last reply
            0
            • D Dave Kreskowiak

              Tom deketelaere wrote:

              I never understood why the old datagrid control supported this and the new datagridview doesn't, but I guess that's microsoft.

              Yeah, I couldn't figure that one out either, and here we are, on the cusp of .NET 4.0 and we still can't do it easily.

              Tom deketelaere wrote:

              But as you suggested the DevExpress controls are easyer to use and have alot more options.

              It's much easier to do it with a control that was designed for it from the start than to hack it together.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008

              T Offline
              T Offline
              Tom Deketelaere
              wrote on last edited by
              #6

              Dave Kreskowiak wrote:

              It's much easier to do it with a control that was designed for it from the start than to hack it together.

              True. I actually started to make my own custom grid control (based on the standerd gridview ofcourse), I didn't get far. I'v been using the devexpress controls for olmost a year now and I have to say there very easy to use (once you understand how they work) and very extended, I fear I'v only scratched the surfice.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups