How to limit the visible items of dropdownlist, which is populated by DataSet
<p>I have a <code>DropdownList ASP control</code>, which is populating by <code>DataSet</code>.</p>

<p>I am using <code>.net 3.5, c#.</code></p>

<p>To control the height of DropDownList, i am using the following code and it is working.</p>

<pre><code>&lt;asp:DropDownList size="1"
            onMouseOver="this.size=10;"             
            onMouseOut="this.size=1;"
            style="display:none; position:absolute; width:150px;" 
            runat="server"&gt;&lt;/asp:DropDownList&gt;
</code></pre>

<p><strong>But it is flickering</strong> when clicking on it, means first it shows all values and again resized for 10, provided length of the control.</p>

<p>Thanks</p>
