ListView - one column

  • Thread starter Thread starter Guest
  • Start date Start date
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,
 
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.
 
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.
 
Back
Top