Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set dropdownlist height and how to show dropdownlist's list always downward display

How can I set a dropdownlist control's height in C#?

I tried this, but it doesn't work:

cbo.Attributes.Add("style", "height: 50%");  

And, how can I make sure a dropdownlist's list is always dropped down rather than up?


At last I got it..

 cbo.Height = new Unit("250px");

I can set dropdownlist height with above code.

like image 714
RedsDevils Avatar asked Nov 13 '22 20:11

RedsDevils


1 Answers

Temporarily you can increase the font size of the items in the dropdown control, this will set height. Will try to find a better solution.

like image 101
Arjun Shetty Avatar answered Dec 25 '22 14:12

Arjun Shetty