How to limit the width of dropdown list
<p>I have an html table that contains a few dropdownlist.  </p>

<pre><code>&lt;table&gt;
    &lt;thead&gt;
        &lt;tr&gt;
            &lt;th&gt;@Html.LabelFor(model =&gt; model.WorkorderId)&lt;/th&gt;
            &lt;th&gt;@Html.LabelFor(model =&gt; model.SubmissionDate)&lt;/th&gt;
            &lt;th&gt;@Html.LabelFor(model =&gt; model.PartId)&lt;/th&gt;
            &lt;th&gt;@Html.LabelFor(model =&gt; model.ActivityId)&lt;/th&gt;
        &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td&gt;@Html.DropDownList("WorkorderId", (SelectList) ViewBag.Workorders, string.Empty)&lt;/td&gt;
            &lt;td&gt;@Html.TextBoxFor(model =&gt; model.SubmissionDate, "{0:MM/dd/yyyy}", new { @class = "datefield" })&lt;/td&gt;
            &lt;td&gt;@Html.DropDownList("PartId", (SelectList) ViewBag.Parts, string.Empty)&lt;/td&gt;
            &lt;td&gt;@Html.DropDownList("ActivityId", (SelectList) ViewBag.Activities, string.Empty)&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>

<p>One of the column (The PartId column), has a very long description.  It almost take the whole page.</p>

<pre><code>12345 - The very long description for Part
</code></pre>

<p>I want to limit the width of the dropdown list to as long as the PartNumber (without the Description).  Right now the the width of the dropdown list is equal to the longest of the PartNumer - Description.</p>

<p>Is there a way to only show the PartNumber (12345) when the it's selected, but show the whole thing (Number - Description) when the dropdown is click?</p>