Home > Archive > Smartphone Developer Forum > February 2005 > Multi column list view in managed code
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Multi column list view in managed code
|
|
| Mark Motherway 2005-02-12, 3:59 pm |
| I'm having problems getting a two column list view to work in c#. I've got
the list view in list mode and can display a single column but if I add
subitems it does not display the data. I've done the same thing in a winform
with no problems.
Does the current smartphone managed code support this feature or am I doing
something wrong.
Examples welcome.
Thanks
Mark
| |
| Peter Foot [MVP] 2005-02-13, 9:01 am |
| You should use Details view, not List view and add to the Columns collection
of the control, you can then have multiple columns visible (you can make the
column header itself invisible.
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org
"Mark Motherway" <mark@mjmassociates.ltd.uk> wrote in message
news:420e3917$0$29425$cc9e4d1f@news.dial.pipex.com...
> I'm having problems getting a two column list view to work in c#. I've got
> the list view in list mode and can display a single column but if I add
> subitems it does not display the data. I've done the same thing in a
> winform with no problems.
>
> Does the current smartphone managed code support this feature or am I
> doing something wrong.
>
> Examples welcome.
>
> Thanks
>
> Mark
>
| |
| Mark Motherway 2005-02-13, 9:00 pm |
| Well I've tried this before and it did not work. So I tried it again and it
worked, but I've another form in the app and the listview columns does not
work. I display the form using a ShowDialog() but the header is just a blank
line and the item lines do not display. If I change the listview to List the
items display. I've compared the two forms and they appear to be exactly the
same.
Does it mater what order the controls are created and added to the form.
I've only one control, a listview, and a menu.
Thanks for your help
Mark.
"Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
news:%23HyhhScEFHA.1012@TK2MSFTNGP14.phx.gbl...
> You should use Details view, not List view and add to the Columns
> collection of the control, you can then have multiple columns visible (you
> can make the column header itself invisible.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
> "Mark Motherway" <mark@mjmassociates.ltd.uk> wrote in message
> news:420e3917$0$29425$cc9e4d1f@news.dial.pipex.com...
>
>
| |
| Peter Foot [MVP] 2005-02-15, 4:08 pm |
| One thing to be aware of is if your code calls ListView.Clear() this will
clear both the items and the columns, and with no columns set up any items
you add to the list will not be displayed. ListView.Items.Clear() will clear
just the list items and retain the column settings
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org
"Mark Motherway" <mark@mjmassociates.ltd.uk> wrote in message
news:420fbb7e$0$29413$cc9e4d1f@news.dial.pipex.com...
> Well I've tried this before and it did not work. So I tried it again and
> it worked, but I've another form in the app and the listview columns does
> not work. I display the form using a ShowDialog() but the header is just a
> blank line and the item lines do not display. If I change the listview to
> List the items display. I've compared the two forms and they appear to be
> exactly the same.
>
> Does it mater what order the controls are created and added to the form.
> I've only one control, a listview, and a menu.
>
> Thanks for your help
>
> Mark.
>
>
> "Peter Foot [MVP]" <feedback@nospam-inthehand.com> wrote in message
> news:%23HyhhScEFHA.1012@TK2MSFTNGP14.phx.gbl...
>
>
|
|
|
|
|