Last post May 27, 2010 10:12 AM by jjvaibhav
Aug 05, 2008 10:41 AM|baburk|LINK
Any body tell me how to set the height of the DropdownList ?
Thanks in advance.
Aug 05, 2008 11:50 AM|vik20000in|LINK
there is a height property in dropdown list. you can alos use style=height:50px
Aug 05, 2008 12:04 PM|Metalore|LINK
Go to the code view of your aspx page, add the height attribute inside the tag for your dropdownlist i.e.
<asp:DropDownList ID="DropDownList1" runat="server" Height="30px">
Aug 05, 2008 05:59 PM|abhishek0410|LINK
You can directly go to property of dropdownlist and select the height property and enter the digit you wan.
at back you can see
<asp:DropDownList ID="DropDownList1" runat="server" Height="30px" Style="position: static">
Hope this helps you.
Mark this answer as correct if this is correct answer
Aug 13, 2008 06:45 AM|baburk|LINK
I want to limit the number of Items in the menu of the dropdown list.
ie. I want to show only 8 items in the menu of the dropdownlist and for the remaining scrollbar should appear.
Jun 25, 2009 09:42 AM|itsprogrammer|LINK
You can set the height of the dropdownlist by setting the font
if font is larg then dropdownlist hieght will be larg
Or If you wish to use another control Use rad Combobox u can set the hieght of rad combo
May 27, 2010 10:12 AM|jjvaibhav|LINK
You can set the size to 5 or any digit something like this:
<asp:DropDownList ID="DropDownList1" size="5" runat="server" ></asp:DropDownList>
Or use ListBox Control instead DropDownList.