there is no way to do this. you really should not set a width for a
dropdown. while 200px may look ok on your machine, your clients may be using
different font sizes/ resolutions and see even less. the browser does not
support determine the text size of dropdown strings.
-- bruce (sqlwork.com)
"Charles Chen" <Ch*********@discussions.microsoft.com> wrote in message
news:21**********************************@microsof t.com...
| The only way around this is writing some really useless scripts that test
for
| the length of the strings in each option of the select and then calculates
| some width. This is overkill for something so mundane as a select.
|
| Best bet and easiest solution is to make the width just wide enough to
| display the full text. Otherwise, use a radio list instead.
|
| This is NOT an ASP.Net question...I dunno why you would even think to post
| it here....
|
| "Garth" wrote:
|
| > Hi,
| > I have a drop down list and have set it's width to 200px.
| > But sometimes the text in the drop down list exceeds the 200px. This
| > cuts off the text thus the user cannot see the full description in the
| > text box. Is there any setting that will allow me to put it to default
| > to 200px if the text is smaller than 200px else to have it to use the
| > 200px width?
| >
| >
| > Thanks
| > Garth
| >
ga*************@cpt.softwarefutures.com
| >