|
-
Oct 7th, 2008, 03:28 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Checkbox in each Column
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?
-
Oct 7th, 2008, 07:07 PM
#2
Lively Member
Re: Checkbox in each Column
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
Please use the search function prior to posting a question and see if someone's already answered it.
-If I helped you, please rate me, as I'd do the same for you =)
-Remember to select the Resolved option for your post when you've gotten the answers you need.
-
Oct 7th, 2008, 07:36 PM
#3
Thread Starter
Frenzied Member
Re: Checkbox in each Column
 Originally Posted by Neato
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.
I need a checkbox in each column.
-
Oct 7th, 2008, 08:56 PM
#4
Fanatic Member
Re: 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.
-
Oct 7th, 2008, 09:28 PM
#5
Thread Starter
Frenzied Member
Re: Checkbox in each Column
 Originally Posted by Ace
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?
-
Oct 8th, 2008, 12:16 PM
#6
Re: Checkbox in each Column
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.
-
Oct 8th, 2008, 03:39 PM
#7
Thread Starter
Frenzied Member
Re: Checkbox in each Column
 Originally Posted by Hack
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.
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|