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. C#
  4. List suggestions for my needs

List suggestions for my needs

Scheduled Pinned Locked Moved C#
cssdatabasesaleshelpquestion
7 Posts 3 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.
  • G Offline
    G Offline
    grmihel2
    wrote on last edited by
    #1

    Hi dear fellow developers, I'm developing a new subsystem, where I need a list of search results. The list will contain more or less different object types, and as in ListBox I need the ability to click on the listed object, which can send the selected object to the propriated GUI; e.g.:

    -------------------------------------
    | <Adress object> |
    | <Customer object> |
    | <Customer object> |
    | <Customer object> |
    | <Adress object> |
    | <Customer object> |

    When clicking on Customer object, the customer gui will be shown with the selected object information inside. And when clicking on Adress object the adress gui will be shown with the selected object information inside, and so forth will all type of objects on the list. I have looked at following lists: Listbox: This form of list couldn't make the tab index for making overview of different objects easier (As an last chance, I could use different colors, but the tabs wouldn't work still). TreeView: The view form are perfect and easy to make an overview with, but it seems like an disanvantage when getting to the click events, since it doesn't have the "SelectItem" object function. ListView: Havn't seen much on this one yet. Sounded like an solution to my needs, but doubt since it seems to have the split screen information, which showing information or contains of the left screen selection. Any with some experience who could calculate which type of list for my needs here? Please help. Best regards

    H P 2 Replies Last reply
    0
    • G grmihel2

      Hi dear fellow developers, I'm developing a new subsystem, where I need a list of search results. The list will contain more or less different object types, and as in ListBox I need the ability to click on the listed object, which can send the selected object to the propriated GUI; e.g.:

      -------------------------------------
      | <Adress object> |
      | <Customer object> |
      | <Customer object> |
      | <Customer object> |
      | <Adress object> |
      | <Customer object> |

      When clicking on Customer object, the customer gui will be shown with the selected object information inside. And when clicking on Adress object the adress gui will be shown with the selected object information inside, and so forth will all type of objects on the list. I have looked at following lists: Listbox: This form of list couldn't make the tab index for making overview of different objects easier (As an last chance, I could use different colors, but the tabs wouldn't work still). TreeView: The view form are perfect and easy to make an overview with, but it seems like an disanvantage when getting to the click events, since it doesn't have the "SelectItem" object function. ListView: Havn't seen much on this one yet. Sounded like an solution to my needs, but doubt since it seems to have the split screen information, which showing information or contains of the left screen selection. Any with some experience who could calculate which type of list for my needs here? Please help. Best regards

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      I do not fully understand your objection to the TreeView Control. Consider any of the many C# Explorer clones you can find on the web. They all have a TreeView in one pane and when you click on any of the nodes the appropriate information is displayed in another pane. It doesn't matter whether a Folder node or a File node is clicked.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      G 1 Reply Last reply
      0
      • G grmihel2

        Hi dear fellow developers, I'm developing a new subsystem, where I need a list of search results. The list will contain more or less different object types, and as in ListBox I need the ability to click on the listed object, which can send the selected object to the propriated GUI; e.g.:

        -------------------------------------
        | <Adress object> |
        | <Customer object> |
        | <Customer object> |
        | <Customer object> |
        | <Adress object> |
        | <Customer object> |

        When clicking on Customer object, the customer gui will be shown with the selected object information inside. And when clicking on Adress object the adress gui will be shown with the selected object information inside, and so forth will all type of objects on the list. I have looked at following lists: Listbox: This form of list couldn't make the tab index for making overview of different objects easier (As an last chance, I could use different colors, but the tabs wouldn't work still). TreeView: The view form are perfect and easy to make an overview with, but it seems like an disanvantage when getting to the click events, since it doesn't have the "SelectItem" object function. ListView: Havn't seen much on this one yet. Sounded like an solution to my needs, but doubt since it seems to have the split screen information, which showing information or contains of the left screen selection. Any with some experience who could calculate which type of list for my needs here? Please help. Best regards

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        grmihel2 wrote:

        TreeView ... doesn't have the "SelectItem"

        You can store the item in the Tag property, that's what I do.

        G 1 Reply Last reply
        0
        • P PIEBALDconsult

          grmihel2 wrote:

          TreeView ... doesn't have the "SelectItem"

          You can store the item in the Tag property, that's what I do.

          G Offline
          G Offline
          grmihel2
          wrote on last edited by
          #4

          I'll try to use the tag function then, and see how it works. I'm used to ListBox's and items in it, so I think it just need another pov to understand the TreeView with tags. But thnx for your suggestion.

          P 1 Reply Last reply
          0
          • H Henry Minute

            I do not fully understand your objection to the TreeView Control. Consider any of the many C# Explorer clones you can find on the web. They all have a TreeView in one pane and when you click on any of the nodes the appropriate information is displayed in another pane. It doesn't matter whether a Folder node or a File node is clicked.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            G Offline
            G Offline
            grmihel2
            wrote on last edited by
            #5

            the whole idea with using TreeView, is to have Aparment object as parent, and customer names as children. When the user db. click apartment object, the apartment GUI will open with the selected object information in the apartment information fields. And if the user db. click customer, the customer GUI will open with the selected customer information filled into the fields. Did it make it any clear, or still confusion about my use of the treeview? :)

            1 Reply Last reply
            0
            • G grmihel2

              I'll try to use the tag function then, and see how it works. I'm used to ListBox's and items in it, so I think it just need another pov to understand the TreeView with tags. But thnx for your suggestion.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              TreeView's way is better.

              G 1 Reply Last reply
              0
              • P PIEBALDconsult

                TreeView's way is better.

                G Offline
                G Offline
                grmihel2
                wrote on last edited by
                #7

                Ye I guess it might be, when you first explore the way they work, and figure tag functions :)

                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