1
Answer

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

mmplay

mmplay

20y
1.8k
1
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)