Solved

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

Posted on 2004-09-03
4
1,081 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
The above link no longer works.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now