MaddogC
May 31st, 2005, 05:28 AM
How can I increase the DropDownWidth of a dropdownlist at runtime?
|
Click to See Complete Forum and Search --> : How can I increase the DropDownWidth of a dropdownlist at runtime? MaddogC May 31st, 2005, 05:28 AM How can I increase the DropDownWidth of a dropdownlist at runtime? prazathin September 21st, 2005, 12:29 AM Generally the width of the DropDownList Increases according to the string it contains....or otherwise use DropDownList1.Width = x; x=integer value; to increase the width in runtime MaddogC September 21st, 2005, 02:31 AM Thanks, but I think my post needs more details. I actually want the combo box to remain at a fixed width, but if the content is longer than the width, then the dropdown appears wider when you click on it. Access does this automatically, but I can't find a way yo do it in asp.net cmiskow September 22nd, 2005, 10:08 AM Thats because ASP.NET renders HTML, and HTML doesn't support this. You could make a custom control using a textbox, a button, a hidden listbox and a whole bunch of javascript, but it's probably more trouble than it's worth. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |