Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ListViewの並べ替えをオフにするにはどうすればよいですか?
何らかの理由で、ListViewは最初の列でascによって自動的にソートされます。
カスタムのListViewですが、変更されているのは実際の外観だけです。標準のListViewに100%基づいています
おそらくListView.Sortingプロパティをに設定しましたSortOrder.Ascending。に設定されていることを確認してくださいSortOrder.None。
ListView.Sorting
SortOrder.Ascending
SortOrder.None
設定:
myListView.Sorting = SortOrder.None;
追加するアイテムListViewがすでにソートされていない限り、トリックを実行する必要があります。
ListView