Question : Limit the number of items in a ASP.Net drop down list

I have a situation where a part of a dropdownlist (in ASP.Net) is off the screen.

How can I limit the number of items in a ASP.Net drop down list or how can I set the Maximum height?

Answer : Limit the number of items in a ASP.Net drop down list

Eric,

I tried to wrap the DropDownList with a scrollable div, but the drop-down portion doesn't respect that construct, and shows outside of the div.  I don't know of any property that would control that (unlike a WinForms ComboBox).  I even tried to look for a custom control that handled that problem.  And, finally, I can't think of any CSS magic that would solve the problem.

Bob
Random Solutions  
 
programming4us programming4us