1
Reply

How can I get the last select-item in ListView?

mmplay

mmplay

Feb 5 2004 7:46 AM
1.8k
Hi, there How can I get the last select-item in ListView? ************ code ***************************** int i = ListView.SelectImtmes.Count - 1; ListViewItem item = ListView.SelectItems[i]; ************ code ***************************** I can do it when user selects in order. but when user selects not in order, (ex. select ListViewItem.Items[5], then ListViewItem.Items[3]) I cann't get the correct last select-item. How to do it? Thanks...

Answers (1)