Click here to Skip to main content
15,063,944 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
How can we limit the size of dropdown list using if there is 20 items and i want to view only ten items rest is viewed by scrolling.?

1 solution


Set size=20 in your dropdown.Like,
<asp:DropDownList ID="DropDownList1" runat="server" size="20">

Hope it helps.
stanly jeba singh 24-Jan-12 3:05am
i agree with u, The dropdownlist height will be very big size when the page is loading. i need after clicking the dropdownlist, if suppose i have 150 item it will be shown 10item and remaining are in scroll down
manognya kota 24-Jan-12 4:15am
check this link

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