how to restrict the appearance of dropdown list

S

sarellaravi

In my dropdown list there are 70 items. when I select the dropdownlist
I am able to view 35 items in a single view. But I want to restrict
the no.of items to 10 when I select dropdownlist.
Please help me out
 
L

Larry Bud

In my dropdown list there are 70 items. when I select the dropdownlist
I am able to view 35 items in a single view. But I want to restrict
the no.of items to 10 when I select dropdownlist.
Please help me out

I don't believe you can. It's up to the browser on how to render the
size of it. Why would you want to limit it?
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

You could try using an HTML Select control instead of the Web DropDownList
control.
Then set the select's Size property to 10.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top