|
-
Mar 10th, 2004, 04:45 AM
#1
Thread Starter
Fanatic Member
ListView column keys
I've always tended to give keys to my ListView columns so that I can be sure that I'm editing the correct sub item. For example:
Code:
itmItem.SubItems(lvwData.Columns("Port").SubItemIndex) = "Dover"
... sets the "Port" column for the current ListView item to "Dover". However, I can't find the .Net equivalent - it seems to only allow you to reference the columns by the integer index value. Is there a way around this, or am I just going to have to make sure that I don't move or add to my columns?
Thanks...
-
Mar 10th, 2004, 05:13 AM
#2
Sleep mode
How about the 'tag' property of the listviewitem !!
-
Mar 10th, 2004, 07:11 AM
#3
Thread Starter
Fanatic Member
I can't refer to the item using the tag, though.
-
Mar 10th, 2004, 07:27 AM
#4
Sleep mode
Originally posted by InvisibleDuncan
I can't refer to the item using the tag, though.
Can't find any other ways , rather than trying IndexOf or making your own ListView control .
-
Mar 14th, 2004, 12:23 AM
#5
New Member
From what source are you adding items to the listview? Is it from a database, xml file or what? I know a solution to the problem you are having, but need a little more information to be able to expalin how to do it.
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
|