473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How can I increase the DropDownWidth of a dropdownlist at runtime?

I m working in asp.net using C#, I want a dropDownList , in which the drop
down

WIDTH is Flexible , Depending on the item whose width is the greatest.
ACTUAL WIDTH OF DROP DOWN

REMAIN

FIXED, ONLY the WIDTH of the drop down window changes acording to the max

WIDTH of item it contains ,
in simple words ...
need the Facility of DropDownWidth Property in web application.. This
property

applies only for Windows Forms.

I need some similar solution for this without creating usercontrols..

http://msdn.microsoft.com/library/en...combobox02.gif

Nov 19 '05 #1
1 1997
no html control supports this. you will have to write, buy or download one.
the implementaion is a textbox, a clickable image(s), a div for the
dropdown, and a some client script to tie it together.

-- bruce (sqlwork.com)
"Saira" <Sa***@discussions.microsoft.com> wrote in message
news:78**********************************@microsof t.com...
I m working in asp.net using C#, I want a dropDownList , in which the
drop
down

WIDTH is Flexible , Depending on the item whose width is the greatest.
ACTUAL WIDTH OF DROP DOWN

REMAIN

FIXED, ONLY the WIDTH of the drop down window changes acording to the max

WIDTH of item it contains ,
in simple words ...
need the Facility of DropDownWidth Property in web application.. This
property

applies only for Windows Forms.

I need some similar solution for this without creating usercontrols..

http://msdn.microsoft.com/library/en...combobox02.gif

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Antonio D'Ottavio | last post by:
Good Morning, In my web page I've a datalist that is sourced by a database, the problem is that I want that one of the column of the datalist contain a dropdownbox that also is sourced by a table...
1
by: Antonio D'Ottavio | last post by:
Good morning, I've a problem with a dropdownlist located inside any row of a datalist, I fill both datalist and dropdownlist at runtime, the problem is with the dropdownlist infact using the event...
1
by: | last post by:
This is a crosspost from a less-frequented (but more focused) asp.net group; I didn't receive an answer that worked. I'd like to get this form functional. Could someone help on what's probably a...
1
by: Miguel Dias Moura | last post by:
Hello, I have two questions concerning Asp:DropDownList 1. How to fill a DropDownList from runtime and set its default item? 2. How do use a DropDownList in each datagrid record? All...
0
by: Jason Law | last post by:
Is there any way to set the drop down width of the dropdownlist control in asp.net? Thanks in advance. Jason Law
1
by: Jason Wilson | last post by:
I have two dropdownlists that are bound to the same datasource and I have a couple of questions: 1) Because they are bound to the same datasource, I am assuming that they only make 1 round trip...
4
by: =?Utf-8?B?c2FtZWVy?= | last post by:
environment : .net framework 1.1, ado.net, visual studio 2003, vb, sqlsever 2000, winforms, webforms I want to increase the timout of the webservice in the application which is being used in a...
0
by: No Master | last post by:
Hi I want to create a dropdownlist at runtime, add it to my datatable in my dataset, then pass the whole dataset in to a session and display it in my datalist. The dropdownlist will be unique for...
6
by: Peter Larsen [CPH] | last post by:
Hi, How do i set DropDownWith in a asp.net ComboBox ?? Thank you in advance. BR Peter
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.