ListView - one column

G

Guest

Hi everybody,

I want to have a ListView which has only one column and all the items have
the width of the listview (that is, no room fro subitems since i don't need
them).

It may sound like a ListBox, but I need to have ListViewItems and not
objects in the control.

Thanks in advance,
 
G

Guest

Always keeping your ListView View property set to Details, make sure that the
only ColumnHeader in Columns collection has its Width property set to the
ListView's width property. You can do it handling Paint events.

I think this is what you were asking.
 
G

Guest

Thank you. It works.


Juanma Mtnez said:
Always keeping your ListView View property set to Details, make sure that the
only ColumnHeader in Columns collection has its Width property set to the
ListView's width property. You can do it handling Paint events.

I think this is what you were asking.
 

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