IDE 1.0.3b single column ListView
- Posted by marky1124 <mark_young at ?otmail.c?m> May 30, 2008
- 830 views
Hi Judith, I want to create a ListView with a single column. My attempts to do so via the IDE keep being thwarted. I'm unsure whether this is a bug or a restriction. Here's how I've tried to do it: 1) Create a ListView control 2) Right click on it -> List View Styles Explorer 3) Click on "To Column Data" 4) Click on the default "ListView2" Title and change it to "Name" 5) Click Change 6) Click Ok 7) Click "Transfer To Properties" NOTE: The Caption now shows as "Name","" 8) If I press F5 to run the code there are two columns, it's not immediately obvious because of the horizontal scroll bar. 9) I can change the Caption to "Name" and get the result I want but if I revisit the List View Styles Explorer then the Caption is changed again to "Name","" I also wanted the single column to be the width of the ListView. I found that the ListView explorer appeared to let me set it by setting "Specific Width" and 196. However that setting didn't take until I also chose "Specific Width" in the "Override Column Width" group in the Visual List View Styles window. That may not be a bug, that might just be my misunderstanding of how to drive the IDE. Perhaps you could comment on whether I'm approaching things wrongly or whether perhaps the IDE could be improved to make this sort of thing more obvious. All the best, Cheers, Mark