Results 1 to 7 of 7

Thread: [RESOLVED] Checkbox in each Column

  1. #1

    Thread Starter
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    Resolved [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?

  2. #2
    Lively Member
    Join Date
    Nov 2007
    Location
    Rochester, NY
    Posts
    111

    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.

  3. #3

    Thread Starter
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    Re: Checkbox in each Column

    Quote 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.

  4. #4
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    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.

  5. #5

    Thread Starter
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    Re: Checkbox in each Column

    Quote 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?

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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.

  7. #7

    Thread Starter
    Frenzied Member longwolf's Avatar
    Join Date
    Oct 2002
    Posts
    1,343

    Re: Checkbox in each Column

    Quote 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
  •  



Click Here to Expand Forum to Full Width