I am exporting a GridView to Excel file (actually just html table fragment) from my ASP.NET page.
But in one column, there is a DropDownList that has very long item. So
the result .xls(html) file is like this:
<table ...>
...
<tr>
...
<td style="width:1200px;">
<select>
...
<option value="long item">Extreme long item with 1xxx characters...till end of road</option>
...
</select>
</td>
...
</tr>
...
</table>
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)?
Thanks!