I am creating an email form, and have a list view component set to View.List. I have set it up so that it accepts the attachments and loads the appropriate icons along with the text of the file name, and stored the full path in the tag. This works admirably all the while there are less attachments than will fit in the visible space.
As soon as you exceed the number of files that can be seen in the control it generates a horizontal scroll bar which obliterates the icons and file names. I can resolve this by making the default size of the ListView larger, but it is ugly with only one or two attachments, it wastes screen real estate, and even then when the number of attachments exceeds visible capacity it creates a horizontal scrollbar and not a vertical one.
I want to have a single row displayed when there are less attachments than will fit in the row. When the number of attachments exceeds that row I want to expand the ListView (or actually the panel it resides on as it is anchored to all four points) to accommodate a second row. If it goes beyond a second row I want to add a vertical scroll bar.
This is pretty much the default behaviour of Explorer, so presumably it must be possible... any suggestions?
Chris Bray
Start Free Trial