Listview vertical scroll

S

saurabh

Is the listview (not listbox) not vertical scrollable?
I have the style set as List and scollable = true but don't seem to get the
vertical scroll.
 
B

Bruce Wood

All of my list views have scroll bars (when the number of items in the
list view is bigger than the list view can display in the view space it
has available). Are you sure that you put enough items in the list that
you need the scroll bar? The scroll bar(s) show up only when they need
to be there.

As well, what do you mean by "I have the style set as List"? I can find
no style attribute on the ListView, other than the standard one offered
by Control.
 
S

saurabh

I have already solved my problem.

I did not add any columns to the ListView, directly added elements and I
never got vertical scroll bar. The view appeared like 'List' type that we
get in the file open dialog. So the elements were one below other till we
got to bottom and then in the next column and so on... It was never
vertically scrollable.

Now I have added a column to the ListView with no header, and make the
column width equal to the width of listview client and I get a nice list
which has all the elements one below other with vertical scrollbar to the
right.

Sorry for the confusion, the property I meant was 'View'.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top