|
-
Mar 24th, 2004, 03:42 PM
#1
Thread Starter
Lively Member
Accessing Items in ListView Control-pls guide
Hello Everybody:
I am working on two ListView Control. I have 10 client details(client name and phone number) stored in one ListViewControl. I have the address of 10 clients stored in another ListViewControl...Now I want to select the information for say 5th Client(name and phonenumber) and its corresponding address in the second listbox and display it on a textbox. I want to select the correct client name and telephone in the first list View and its corresponding address in the second ListView Control. If I select the wrong address or wrong client name, it should display an error message
Pls guide what properties,methods should I use in ListView Control to access the items...
Thanks in advance...
K
-
Mar 24th, 2004, 03:47 PM
#2
Addicted Member
you really havent given enough information. Do you have a field or something that tells you which address cooresponds with which name an phone?
-
Mar 24th, 2004, 03:55 PM
#3
Thread Starter
Lively Member
Accessing Items in ListView Control-pls guide
I do not have any field or something thats tells which address correspnds to which name and phone. The client details (name and phone number) is being added into listview1 as
Client 1
Client 2
Client 3
Client 4
Similarly the address in listview 2 is being added as
Address 1
Address 2
Address 3
Addres 4
Now I want to select Client and Address in such a way that Client 1 should correspond to Address 1 only, Client 2 should corresspond to Address 2 only.
Is there a way how to do that ? Pls guide..
K
Originally posted by Tewl
you really havent given enough information. Do you have a field or something that tells you which address cooresponds with which name an phone?
-
Mar 24th, 2004, 08:25 PM
#4
Addicted Member
hm well i guess u can compare the selected index of each listview
-
Mar 25th, 2004, 11:51 AM
#5
Thread Starter
Lively Member
Accessing Items in ListView Control-pls guide
I am not finding the selected index method in the listview control.
Can you show an example how to do it...It will be a great help.
K
Originally posted by Tewl
hm well i guess u can compare the selected index of each listview
-
Mar 25th, 2004, 01:14 PM
#6
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|