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,

--
Mihai TÄ?tÄ?ran
H.P.C. Consulting
www.hpc-consulting.ro

RE: ListView - one column by JuanmaMtnez

JuanmaMtnez
Wed Sep 26 14:59:01 PDT 2007

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.

"MihaiT" wrote:

> 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,
>
> --
> Mihai TÄ?tÄ?ran
> H.P.C. Consulting
> www.hpc-consulting.ro

RE: ListView - one column by MihaiT

MihaiT
Wed Sep 26 23:03:05 PDT 2007

Thank you. It works.


"Juanma Mtnez" wrote:

> 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.
>
> "MihaiT" wrote:
>
> > 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,
> >
> > --
> > Mihai TÄ?tÄ?ran
> > H.P.C. Consulting
> > www.hpc-consulting.ro