ASP.Net dropdown list height

Posted on 2009-02-13
Medium Priority
Last Modified: 2013-11-26
The height paramater below is having absolutely no effect.  

This list is populating with 31 days...and I need to limit the height of the dropdown to 200px or 10 items.

<asp:DropDownList ID="condoDays" runat="server" style="font-size: 11px" tabindex="3" height="10">
Question by:lrbrister

Accepted Solution

jzierse earned 2000 total points
ID: 23636349
Unfortunately, it isn't possible to define the height of the default .Net ComboBox dropdown area.  If you must use a ComboBox with the parameters you specified, then you will either need to create your own custom control or use one created by someone else.

I did some searching and found the following control made by Obout Inc. that will most likely fit your needs.

Download: http://www.obout.com/inc/download.aspx
About the control: http://www.obout.com/combobox/
How to add to your project: http://www.obout.com/inc/tu_add_component.aspx


Expert Comment

ID: 24553916
how can we do it without using 3 rd party controls?

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question