
Listview not showing groups? This could be your problem.
Scenarios:
- I have done everything to display groups but they refuse to display!
- Cannot see groups in listview
- Listview has groupings but no groups at runtime
- listview does not show groups
- listview not showng groups
Application.EnableVisualStyles()
Call it at the beginning of your App, this will only effect people who decide to add this to an older app in most cases.
I ripped my hair out for a while before finding this in the documentation. Grats googlers I did the work for you.
ListView groups are available only on Windows XP Home Edition, Windows XP Professional, Windows Server 2003 when your application calls the Application..::.EnableVisualStyles method. On earlier operating systems, any code relating to groups has no effect and the groups will not appear. For more information, see ListView..::.Groups.
p.s. - Another possibility is you are viewing in details but do not have a column added.
p.p.s. - Another possibility is you do not have listview1.showgroups = true.
p.p.p.s. - You can also set this in the properties rather than calling it. (Picture below p.p.p.p.s.)
p.p.p.p.s. - If you are running anything older than XP, Server 2003, etc you cannot view visual styles and are screwed until you update.
