I’m trying to figure out how to use a ListView control with View set to Details.
It’s no problem if View is set to LargeIcon, SmallIcon, List or Tile, but when I set View to Details the ListView control remains empty no matter what I do.
I have tried perhaps 100 different examples, all with the same result.
What may be the root to this problem? And how can it be solved?
Update: I’m now using an HTML table, styled with CSS and displayed in a WebBrowser control. I think it’s a rather good solution; if it’s the final solution remains to be seen.
It’s difficult to answer your question without seeing any code, but I suggest closely examining the code in this example on MSDN which uses ListView Details.
My guess is that you’re not adding SubItems to your ListViewItem objects.