VB.Net: Problem Retrieve data from ListView

Lennie

New member
Joined
Feb 9, 2007
Messages
3
Programming Experience
Beginner
Hi Guys,
I am using a ListView with 4 columns. The First column contains the CustId and Checkbox the subitems contain other info. I am having problem trying to retrieve the Custid and display it in the textbox on Click Event.

Here are my sample script adopted from VB6.

With me.ListSelection
me.txtCustId.text = .selectedItem(0).text
End With

I keep on getting error message :" Parameter error :Index". As I am new to Vb.Net, I couldn't figure out how to resolve this. I need help

Have a good days,
Cheers,
Lennie
 
None is selected.
 
Hi John,

That the reason why I seek for help here because when I tried it before posting I couldn't get it going. So, any idea how to get it going...?

Now, where have this question being moved to ......????

Cheers,
Lennie
 
For an idea to find out if there are any selected items you could inspect LV.SelectedItems.Count property.

This current thread is in Listviews forum it says at top of page.
 
Back
Top