Solved

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

Posted on 2004-09-03
4
1,092 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

919 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

20 Experts available now in Live!

Get 1:1 Help Now