ASP.NET scrollable Checkboxlist or a ListBox onload with multiselect
Posted on 2003-10-22
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.