ListViewItem.Index
property gets the zero-based index of the item within the ListView
control. Now I need index of certain item in a ListViewGroup
, not the whole control. Is it possible?
You can find its index within the group as such :
ListViewItem item = /* certain item in a ListviewGroup */;
var index = item.Group.Items.IndexOf(item);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.