DDL Height - Setting it has no effect?

D

Doug

According to online help, the DropDownList control
(System.Web.UI.WebControls.DropDownList) has a .Height property.

I found that setting it seems to have no effect.

MyDDL.Height = Unit.Pixel(10); //I've tried other settings for Unit as
well.

I'm testing in IE 6/sp1 - so we're not dealing with downlevel browser
support issues.

What does it take to set the height of a DropDownList?

Thanks.
 
D

Dale

You can only set it by adjusting the font size of the text in the
DropDownList.

Dale Preston
MCAD, MCSE, MCDBA
 
D

Doug

Okay - I can live with that.
....too bad online help doesn't mention that. It has a list of scenarios in
which the .Height property doesn't work. This should be included in that
list IMHO.
 
Joined
Sep 5, 2006
Messages
11
Reaction score
0
The select element (which is what the DropDownList renders to the browser) is notoriously inflexible. You'd have to write your own, or use a third-party control like EasyListBox (which has a great promo right now if you just need single-website licenses).
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top