Jump to content

  • Log In with Google      Sign In   
  • Create Account

listview


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 kalixxx   Members   -  Reputation: 105

Like
0Likes
Like

Posted 12 November 2012 - 12:26 AM

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???

Sponsor:

#2 Endurion   Crossbones+   -  Reputation: 3682

Like
2Likes
Like

Posted 12 November 2012 - 01:52 AM

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.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

#3 kalixxx   Members   -  Reputation: 105

Like
0Likes
Like

Posted 12 November 2012 - 04:34 AM

im sry and you are right c#
i will try .tag and report back

#4 kalixxx   Members   -  Reputation: 105

Like
0Likes
Like

Posted 12 November 2012 - 05:18 PM

works awesomely tnx




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS