ListView labeledit
-
Im trying to support labeledit in my ListView control but i am stuck on getting the ListViewItem object edited. In the EventArg to EndLabelEdit there is an Item member telling which index was edited but how do i get the ListViewItem from the index? listView1.Items returns the ListViewItemCollection and according to the help there should be an Item property there but it is not there...:confused: /Magnus
- I don't necessarily agree with everything I say
-
Im trying to support labeledit in my ListView control but i am stuck on getting the ListViewItem object edited. In the EventArg to EndLabelEdit there is an Item member telling which index was edited but how do i get the ListViewItem from the index? listView1.Items returns the ListViewItemCollection and according to the help there should be an Item property there but it is not there...:confused: /Magnus
- I don't necessarily agree with everything I say
You might want to take a look here:In-place editing of ListView subitems[^], could save you some time and effort... Regards, mav
-
You might want to take a look here:In-place editing of ListView subitems[^], could save you some time and effort... Regards, mav
-
Surely there must be some way of getting the ListViewItem by index without using SendMessage() ? /Magnus
- I don't necessarily agree with everything I say
If I understand your problem correctly then a simple
ListViewItem theItem = listView1.Items[e.Item];
would be the answer (with
e
being theLabelEditEventArgs
). Can it be so simple? mav -
If I understand your problem correctly then a simple
ListViewItem theItem = listView1.Items[e.Item];
would be the answer (with
e
being theLabelEditEventArgs
). Can it be so simple? mav