Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can this be done?

Status
Not open for further replies.

JGresko

Programmer
Apr 24, 2002
86
US
I have a large collection of checkboxes that I'd like to allow the user to scroll through... like a list box, but with checkboxes (faked graphic example pictured). Does anyone know how to do this or know of a componet that allows it?

Thanks, Judy

example.jpg
 
Quick and dirty:
make a seperate page with the check list, then on your main page put an IFrame on it, and point its source to teh checklist page. That will give you the exact look you want.

BUT

It's clunky.

D'Arcy
 
Thanks jfrost10,

It looks right, but I don't think there's a way to access the checkbox values when I hit the 'Add Criteria' button.

Judy
 
Ah..well, does it have to be in a scroll box? I've done exactly what you're trying to do, but just with a datagrid.
The downside of my way is that you'd have to scroll....
Oh..wait...

If you used a datagrid with paging, you wouldn't need to scroll at all. However, this would mean that they'd have to page through all the controls, and if they miss a page of options, that probably wouldn't be good either.

Sorry, went on a tangent there. The datagrid way will work though.

D
 


... on second thought, I'm switching design tactics.
This was at a user's request who's more familar with windows forms. Always try to give 'em what they want first...

moving to thread855-398907
 
I know you have moved on, but I've done something similar using style sheets.

I placed by DataGrid inside <DIV> tags. Then I applied a style to the div

style=&quot;overflow: auto; height: 200px;&quot;

It proved to be really user friendly in the end.

 
OMG, I even have that implemented in my project already!

Silly me for not thinking of it.

Good stuff J
:)

D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top