Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a dropdownlist with 15datatypes,when i click the drop down it looks so clumsy ,can u suggest me how to put scroll in dropdownlist in asp.net
Posted

Put your content inside div with fixed height and set the div style to overflow:auto and if you concern to show only six items then you can adjust div height according to that and can use.
 
Share this answer
 
Hi...
Just put default height and width values like.
XML
<asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="122px">
        </asp:DropDownList>

Thank u.
 
Share this answer
 
Comments
karthik mushyam 25-Sep-13 7:35am    
won't worked
[no name] 25-Sep-13 8:24am    
R u want scroll at horizental or vertical.

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