Listview Groups

Ask your PowerShell-related questions, including questions on cmdlet development!
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 2 years and 1 month 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.
Locked
Marcel22
Posts: 5
Last visit: Tue Sep 20, 2022 8:48 am

Listview Groups

Post by Marcel22 »

Hello my friends,

I am trying to play a little bit with the listview groups. Now I have a problem that I can create the groups and also write an entry in each group.

Example:

Group Auto
Audi
BMW
Opel

I can write Audi but more is not possible how can I add more entries to the group ? How can I add BMW and Opel ?

can someone help me ?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Listview Groups

Post by jvierra »

You have to create listview items and then add the items to a group.

See: https://docs.microsoft.com/en-us/dotnet ... esktop-4.8
Marcel22
Posts: 5
Last visit: Tue Sep 20, 2022 8:48 am

Re: Listview Groups

Post by Marcel22 »

Hello thank you for the answer have found the solution, now I have in my listview yes checkboxes how can I please query the status Check and Uncheked ?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Listview Groups

Post by jvierra »

Always start by checking the online documentation. This will save you a lot of time and get you up-to-speed with writing code for the object types you want to work with.

https://docs.microsoft.com/en-us/dotnet ... esktop-6.0
This topic is 2 years and 1 month 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.
Locked