Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I'm working on ASP.NET Web Application.
I'm binding some values to my dropdownlist, if in case my values in the dropdown is larger, the width automatically increases.
I need a horizontal scrollbar so that my dropdown does not increase its size.

I have already looked through this[^] CodeProject article, but this is not the one I'm expecting.

Kindly suggest
Posted
Updated 13-Feb-11 23:40pm
v3

The usual dropdownlist has no support for a horizontal scrollbar.

Have a look at these links discussing the same:
Link 1[^]
Link 2[^]
Link 3[^]

Alternatives like putting it in a Div would be suggested in general, but that would not look clean and would not suffice your situation.

Only alternative, I can think of is to make a custom control of yourself where you take a textbox and div collectively to have a dropdown look and feel that can have customized size and scrolls.
 
Share this answer
 
Comments
Espen Harlinn 14-Feb-11 10:05am    
Good answer
Sandeep Mewara 14-Feb-11 13:42pm    
Thanks. :)
gachu16 4-Mar-11 6:50am    
I dont have access to experts exchange site. can u provide me the code which is written there.
Thanks
Hope this[^] might give you an idea.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900