Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Identify Row Clicked in a ListView control?  (Compact Framework)

Posted on 2004-09-03
4
1,099 Views
Last Modified: 2012-09-06
I'm working in VB .Net Compact Framework, with a ListView control.

What's the best way to identify the row clicked, and return data
from one of the columns ... to a textbox control?

Which event should handle the screen tap?  
Click and MouseDown events don't seem to fire when
tapping the screen, and there is no double-click event?

In searching various help areas, there doesn't seem to be samples that relate specifically to the compact version of the control, I'm suprised?

Tom
0
Comment
Question by:TomMuschamp
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11980599
since you are using a listview control I would also suggest looking at this http://samples.gotdotnet.com/quickstart/util/srcview.aspx?path=/quickstart/CompactFramework/samples/ListViewSort/ListViewSort.src

there is a click event (which works here) there is also the selected index changed event which you could use ...
0
 

Author Comment

by:TomMuschamp
ID: 11981138
gregoryyoung
    Thanks, I looked thru this before and didn't have much luck with it. I know it says "compact framework" but unless I'm not initiallizing the control properly, the Click event just doesn't fire for me, and I don't know why? This article also didn't give me any help on highlighting a selected row, or returning row data to a field.

I want to list data in a grid, allow a user to select a row, and then return that row's data to a form. Should I be using the DataGrid control instead? I have used the standard VB6 ListView control in the past and it worked fine. In the compact version it seems to be very limited?

Tom
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11981183
the compact version is limited but I have not had issues with the click event.

As for the datagrid, this is another route you can take.

As for the article I was just mentioning it as it is somewhat usefull with the listview :)
0
 

Expert Comment

by:enterprise2010
ID: 38373938
The above link no longer works.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question