St´ratalistview-Question


Author
Message
Thomas Holste
Thomas Holste
Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi there,

how do I get the index of an selected item in a stratalistview. The code I found in an older post by Trent seem to be for the listview?



Dim index As Integer = LV.SelectedIndices(0)



But unfortunately "selectedindices" is not a member of the stratalistview.

Thanks a lot and Merry Christmas for all of you

Thomas



Reply
Thomas Holste
Thomas Holste
Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)Advanced StrataFrame User (534 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi Edhy,




thanks for your detailed answer. I already found your listview-class.

But I want to use the stratalistview in bound mode. I get bibliographical data  through a Rest-API, assign it to an objects, than save These objects in a List of Objects, which populate the listview. Works all fine but I want to move and remove and add objects so I need the index. But I found an easier way:



LV.Items.RemoveAt(LV.Items.IndexOf(LV.SelectedItems(0)))



By now, this seems to work.

Best regards

Thomas


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search