Listview with column item's as tree's

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Slaughter

    Listview with column item's as tree's

    How do I add the ability to combine listview with treeview? I want to have a
    list view but with some items in some columns to have the ability to act as
    a tree instead of just a single item. (like, say, how outlook express does
    it with its message headers)

    Is it possible with ListView? I haven't been able to find anything that
    mentions how to do it.

    Thanks,
    Jon


  • Claes Bergefall

    #2
    Re: Listview with column item's as tree's

    Start with these:



    /claes


    "Jon Slaughter" <Jon_Slaughter@ Hotmail.comwrot e in message
    news:LOkGj.312$ Nc5.170@newssvr 27.news.prodigy .net...
    How do I add the ability to combine listview with treeview? I want to have
    a list view but with some items in some columns to have the ability to act
    as a tree instead of just a single item. (like, say, how outlook express
    does it with its message headers)
    >
    Is it possible with ListView? I haven't been able to find anything that
    mentions how to do it.
    >
    Thanks,
    Jon
    >

    Comment

    • Jon Slaughter

      #3
      Re: Listview with column item's as tree's


      "Claes Bergefall" <claes.bergefal l@nospam.nospam wrote in message
      news:%23NRWNnyj IHA.4164@TK2MSF TNGP02.phx.gbl. ..I don't really want to use an external control. Are you saying that its
      impossible to do it with the standard listview?


      Comment

      • Claes Bergefall

        #4
        Re: Listview with column item's as tree's


        "Jon Slaughter" <Jon_Slaughter@ Hotmail.comwrot e in message
        news:tSuGj.6024 $6H.3706@newssv r22.news.prodig y.net...
        >
        "Claes Bergefall" <claes.bergefal l@nospam.nospam wrote in message
        news:%23NRWNnyj IHA.4164@TK2MSF TNGP02.phx.gbl. ..>
        I don't really want to use an external control. Are you saying that its
        impossible to do it with the standard listview?
        How do you define an external control? The .NET listview control does not
        provide this out of the box. You will need to inherit it and do a bunch of
        P/Invoke stuff (start by looking at the LVITEM structure, specifically the
        iIndent member). The links above should lead you to several implementations
        that does exactly that (complete with source). Treat them as samples if
        you'ld like...

        /claes


        Comment

        Working...