Adding images (bitmap) to any colum of a listview

  • Thread starter Thread starter Ivan Figueredo
  • Start date Start date
I

Ivan Figueredo

Hi,

I have successfully implemented a simple TreeView Control
with a corresponding Listview.

I know how to assign a bitmap to the first item of a
Listview, but is it possible to add a bitmap to any column
of a Listview?

Finally, I was wondering if it is possible to have the
each row of a Listview have it's own background color. I
want to alternate each row with light green
(transparent ?) and white so as to make it easy to follow
the row from left to right(the way ledger accounting paper
is printed.) Is this possible?

Thanks,

Ivan
 
Hi Ivan,

There should be no problem with backgrounds - each SubItem has
BackgroundColor property which can be set individually. But as for bitmaps,
you'll most likely have to implement custom drawing. I have seen a good
example if this somewhere on www.codeproject.com, the sample was called
"Sorted List View" if my memory serves me well.
 
Back
Top