ListView "Tile" View Issue: VS2005 / .NET 2.0

Hello,

I am having an issue with the "Tile" view using VS2005 / C# / .NET 2.0, July CTP running WinXP SP2.

I have a ListView whose view I can set dynamically in my Windows Forms application. Two of the views I use are "Details" and "Tiles". The default view is details, where I have some number (say, 20) items and four columns (the columns are created at design time). Everything works as expected in details view. The problem is with the Tile view.

1. The first time when switching to Tile view, only the ListViewItem "Text" item shows up--one single line to the right of each icon in Tile View. No subitems, even though they are present, show up. HOWEVER, immediately "Refreshing" the listview will populate the items as expected--the ListViewItem Text and SubItems all show up to the right of the icon. In other words, clearing the Items collection, then creating new ListViewItems and adding them back again from the datasource (a List<> of strings) via the Add() method will show the Tile view properly with SubItems. The problems seems to relate from dynamically switching to the Tile view (incorrect behavior) vs. adding items when the listview is already in Tile View mode (correct behavior).

Ideally, I'd like to have the Tile view show up correctly when dynamically switching from, say, the Details view WITHOUT having to repopulate the ListView.

Are there any bugs open related to this, or has anyone encountered any similar issues?
Thanks,

--Mike

[1488 byte] By [MikeP2] at [2007-12-16]
# 1
after switching your view try:

ListView1.Refresh() vs clearing and adding

DMan1 at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
This is a known bug that is fixed in recent builds. The workaround in Beta2 builds is to add the details items when the View is in Tile (basically like you said - you need to repopulate everything.)

Again, in RTM builds this works.

-mark
Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Excellent news. Dman1, thanks for the workaround--I'll try the refresh.

Mark, I appreciate the follow up confirming this is a known bug and that it's fixed in the RTM builds. The Tile view for my app is a really nice way to present the info so I'm pleased to hear that all is well.
Thank you,

--Mike

MikeP2 at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...