Putting Images into a ListView SubItem

M

Mark Roberts

Greetings:

Is it possible to put a small image into a ListView item when the target
item is NOT the item 0 (ie: its not the item on the left-most column).

What I am trying to accomplish is to create a list representing some real
world items with various options and features. I would like to have a column
called T-Sensor (which indicates whether or not a temperature sensor is
installed). I would prefer that this column use a graphic (like a check-box)
to indicate yes or no, rather than actual text that says "YES" or "NO". Each
item has quite a few "yes/no" columns like this and I think it would look
more professional and slick if check-boxes were used.

Thank you,
Mark
 
M

Mark Roberts

Hi Bob:

Thanks for your response. I'm a bit puzzled though...

From what I can tell, it is "ListBox" that supports the owner draw feature
and ListView does not. At the same time though, ListBox does not seem to
have a setting for "report view" (aka "details").

Can I Owner Draw a ListView? If so, how?

I would really like to learn how to customize controls in C# but I'm a
little bewildered by the complexity of them. Can you recommend a good
reference or starting point?

Thank you,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top