Listview

  • Thread starter Thread starter Ralf
  • Start date Start date
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
|
|
|
 
Seems to me that it is enough to set "Selected = true". What does the
"Focused = true" do?

Best regards
Lorents Hildrum
 
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
|
|
|
 
Back
Top