开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜