DropDownList width in Excel RRS feed

  • Question

  • User-1695137398 posted

    I am exporting a GridView to Excel file (actually just html table).  But in one column, there is a DropDownList that has very long item.  So the result .xls/html file is like this:

    <td style="width:1200px;">
    <option value="long item">Extreme long item with 1xxx characters...till end of road</option>
    And the result is the <select> control will appear very wide in Excel.  That's why I have to make the table cell wider (1200px) to contain the DropDownList.  Is there a way to control the width of the <select> control displayed in Excel (such as using some Office-specific tags)?

    Tuesday, September 23, 2008 5:36 AM

All replies