ASP.NET scrollable Checkboxlist or a ListBox onload with multiselect

wym
wym used Ask the Experts™
on
Hello:

Ideally, I would like to have a checkboxlist that is scrollable, much like the windows listview.  Unfortunately, this is not available in ASP.NET.  Perhaps there is a free control or a tutorial out there that might help?

I would just use the checkboxlist but this totally screws up my web form design if there are too many checkboxes.  Can I use a container that will allow for scrolling?

Finally, I thought about just using a listbox (solves my scrolling problem), but I would like to multiselect a few lines on page load.  Is this possible?

        ListBox1.SelectedValue = 1
        ListBox1.SelectedValue = 2
        ListBox1.SelectedValue = 3

All this amounts to is selecting the last item, not all 3.

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The scrolling can be achieved by putting your checkbox list in a <div> and set the fixed height for it. Then you can modify the flow style of list to auto scroll when it overflows the hieght,
wym

Author

Commented:
Great solution.  Thank goodness for simple newbie answers!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial