Listview

S

Serg Kuryata [MS]

Hello Ralf,

You need to set the Selected and Focused properties to true of the
listviewitem you want to select. For example,

this.listView.Items[1].Focused = true;
this.listView.Items[1].Selected = true;

Best regards,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Ralf" <ralfeaddfaxring.de>
| Subject: Listview
| Date: Mon, 26 Jan 2004 14:00:11 +0100
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pd9ffeea0.dip.t-dialin.net 217.255.238.160
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:44005
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hello,
|
| how can i select a item in a Listwiew?
|
| Thanks
|
| Ralf
|
|
|
 
L

Lorents Hildrum

Seems to me that it is enough to set "Selected = true". What does the
"Focused = true" do?

Best regards
Lorents Hildrum
 
C

Chris Tacke, eMVP

ListViews have a selection (the highlighted area), which can be one or more
items, and a focus (usually has a outline square around it), which can be
1and only 1 item.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Lorents Hildrum said:
Seems to me that it is enough to set "Selected = true". What does the
"Focused = true" do?

Best regards
Lorents Hildrum

Serg Kuryata said:
Hello Ralf,

You need to set the Selected and Focused properties to true of the
listviewitem you want to select. For example,

this.listView.Items[1].Focused = true;
this.listView.Items[1].Selected = true;

Best regards,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Ralf" <ralfeaddfaxring.de>
| Subject: Listview
| Date: Mon, 26 Jan 2004 14:00:11 +0100
| Lines: 9
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: pd9ffeea0.dip.t-dialin.net 217.255.238.160
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:44005
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hello,
|
| how can i select a item in a Listwiew?
|
| Thanks
|
| Ralf
|
|
|
 

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

Similar Threads

Listview on .net CF 2.0 0
InputPanel 2
ListView Hang? 1
ListView and multiselect 9
Change Font in ListView Item 1
ContextMenu in CE 4.2 ListView is Empty! 1
listview problem 1
ListView, Rocker Down problem 9

Top