Link to home
Start Free TrialLog in
Avatar of TomMuschamp
TomMuschamp

asked on

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

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
ASKER CERTIFIED SOLUTION
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TomMuschamp
TomMuschamp

ASKER

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
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 :)
The above link no longer works.