Custom sorting for virtual ListView with ImageLIst
Tutorial explains sorting of a list without icons.
Icons are to be set in ListView.LargeImageList property as ImageList instance. ImageList can be mapped by keys, but I can't find a way to associate an image key with ListViewItem contained in the list.
Should user of ListView reorder ImageLis开发者_开发百科t with icons on sorting?
Use the ListViewItem.ImageKey property to associate the item with an image. If the order of the list view items changes due to sorting, the images for the items will display accordingly.
精彩评论