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:
... 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?Code:itmItem.SubItems(lvwData.Columns("Port").SubItemIndex) = "Dover"
Thanks...




Reply With Quote