How can I add UI components into the listview control?

  • Thread starter Thread starter Thomas
  • Start date Start date
T

Thomas

Hi!

Is it possible to add UI components (e.g comboboxes, checkboxes) to the
cells of listview control?

Best Regards,
Thomas
 
You can add CheckBoxes - which are per-row not per-cell. You might be able
to achieve what you want with an OwnerDrawn control where you specify how
the individual items are drawn in the list. Alex wrote a detailed article
with code on how to create an owner-drawn control:-
http://www.opennetcf.org/Articles/ownerdrawnlist.asp

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
Handheld Interactive Reference Guides
 
Peter,

Thank you for you answer.

Does it mean that I have to develop my own listview control from the ground
(instead of subclassing the normal listview control)?

Best Regards,
Thomas
 
I'm afraid so - However Alex's article contains a base implementation of an
OwnerDrawnList which you can add to so you don't have to start completely
from scratch.

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 
Thank you very much for your advice!

Thomas

Peter Foot said:
I'm afraid so - However Alex's article contains a base implementation of an
OwnerDrawnList which you can add to so you don't have to start completely
from scratch.

Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 

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

Back
Top