简体   繁体   中英

is ListView.Items order caused by Index of ListViewItem?

I have several ListViewItems i want to order it in different way using its Index . Is it possible that when i change index of item and the item location in ListView will be affected ?

You cannot use ListViewItem.Index Property to order items (besides, its read-only). Instead use the ListView.Sort Method .

EDIT: For WPF , see http://bea.stollnitz.com/blog/?p=24

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM