ListView control

O

Ohad Young

Hi,

I need to display multiple items, each has a textual description, icon and
enable multiple selection.
So far the ListView control seems to be the ideal control to use.
However, another requirement is that some of the items will have a checkbox
next to them while others will have a button or something similar.
Can I achieve this behavior using the ListView control ?
Is there some other free control that I can use?

I'd appreciate any recommendations.
Thanks, Ohad

--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
 
O

Ohad Young

Hi,

Thanks for the reply.
Actually it’s possible to have checkboxes in a ListView by setting the
CheckBoxes property to true. Each and every item in the ListView will
have a checkbox.
My problem is that I’d like some of the items to have checkboxes, while
others have other controls, such as buttons, or nothing.

Any idea?

Ohad
 
M

Munir Husseini

As I see it, the only way to do this is to inherit from ListView and paint
all items by youreself aswell as handling mouse and keyboard events (or
determine if an item has a checkbox, button or whatsoever in the OnItemCheck
method). This is some work but is still easier than creating the whole
control by youreself.

Munir Husseini
iCOMcept GmbH
www.icomcept.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

Similar Threads


Top