Sign in to follow this  
kalixxx

listview

Recommended Posts

kalixxx    105
ih im using vs10 and i found this listview control.
found how to use most of its feturs (not sure its the best for what i need yet)

but i cant find how to get the item i clickd on!
the listview points to a dictionary. now how do i get a ref bake from what i selected to the dictionary???

Share this post


Link to post
Share on other sites
Endurion    5408
Unfortunately you don't mention the language and/or framework, so I assume Windows.Forms with C#?

You find the selected items in ListView.SelectedItems.

If you want to store a reference to your own objects in a ListView you can use the .Tag member of the ListViewItem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this