List suggestions for my needs
-
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
-
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
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.”
-
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
grmihel2 wrote:
TreeView ... doesn't have the "SelectItem"
You can store the item in the Tag property, that's what I do.
-
grmihel2 wrote:
TreeView ... doesn't have the "SelectItem"
You can store the item in the Tag property, that's what I do.
-
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.”
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? :)
-
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.
TreeView's way is better.
-
TreeView's way is better.