drop down list: size

  • Thread starter Thread starter Ian Oldbury
  • Start date Start date
I

Ian Oldbury

Hi all,

i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if possible.
How is this done??

This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox"
enableviewstate="True" >
</asp:dropdownlist>
 
you populate the drop down list with the data that you want. What ever you
put in, you get out. To limit your list, don't insert the data. The drop
down list is not like a datagrid where you can do paging.
 
ah that confuses me a little, as my understanding was that the dropdownlist
is the asp.net version of HTML form control. Which when setting the size
property would limit the number that could be seen at a time without using
the scrollbars.
 
Are you wanting to know how large to make the DropDownList? All the items
would be there, but you want to control how many are "visible" at a time?

bill
 
Back
Top