Click here to Skip to main content
15,888,590 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to limit the number of items displayed in my dropdownlist. I have a drop downlist with around 50 values and want to display first ten items in the drop downlist after clicking the scroll only it will shows the remaining items.

Thanks in Advance....
Posted

There is no direct property to do that. But you can do it by setting attributes like below,

C#
DropDownList1.Attributes.Add("Size", "10");


Mark it as answer if it is helpful
 
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