Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
There is a way to create dynamic groups ?
In this example I have 2 computers, each line shows the disk partition of that computer.
If the computer has two lines, so 2 partitions, I would like them to be grouped in the same group as the computername.
Of course I could also have 50 computers, I would like the groups to be generated automatically.
Any item in a ListView can be assigned to a group. A group is just a way of displaying the items.
When you create the item just add it to the group. You can create a group for each computer name you add. Test to see if the group already exists and create or skip creation. Add the item to that group.
This topic is 4 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.