Basically, I need a ListView, in Report mode, with a checkbox in each column.
Is there a way to do it with listview?
Is there another control that could do it?
Printable View
Basically, I need a ListView, in Report mode, with a checkbox in each column.
Is there a way to do it with listview?
Is there another control that could do it?
In the properties of the ListView control, just change the Checkboxes setting to True, or when you load the ListView, add the code ListView1.Checkboxes = True
Thx, but that gives you one checkbox per row, usually in the 1st column.Quote:
Originally Posted by Neato
I need a checkbox in each column.
Try creating a picture of a checkbox and placing it inside of an ImageList control. Use the image property for each column inside the listview to set it to the correct image. Then check the listview for which item was selected and adjust the listview image accordingly, either a checkbox that is checked, grayed or unchecked. Hopefully that helps.
How do you set the image or icon for the SubItems?Quote:
Originally Posted by Ace
I think it might be easier to look for a third party listview control which might have this type of behavior built in my default.
Yea, I checked VBAccelerator. Couldn't tell if his stuff would do it.Quote:
Originally Posted by Hack
Finally just made a usercontrol, combined it with two other usercontrols (a scroll box and custom scroll bar.
It looks pretty good and only needs one row so it didn't take much.
But now my app uses 9 diff types of usercontrols :D