I have 7 column in my list view then i 开发者_JS百科want to add image in first column. How I can solve this problem.
Thanks in advance
- Add a
ImageList
control to your form. - Assign that
ImageList
to theListView
(there are properties for small/big icons) - Add your images to the
ImageList
(can happen dynamically) - Add the correct index to the
ListViewItem
's constructor (or set the icon later on).
精彩评论