简体   繁体   中英

ListView sorting

How can i turn off ListView sort?

For some reason my ListView automatically sorts by asc on my first column.

Its a custom ListView but the only thing that has been modified is the actual look of it. Based 100% on the standard ListView

You've probably set the ListView.Sorting property to SortOrder.Ascending . Make sure it is set to SortOrder.None .

Setting:

myListView.Sorting = SortOrder.None;

Should do the trick, unless the items that you are adding to the ListView are already sorted.

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