Hi,
I'm having problems exporting gridview to excel file when there is no data in gridview. It runs perfectly fine when there are rows in both grdUpload and grdDownload. However, if there's none, it writes text literally inside the htw.Write() and ignores the formatting.
Wrong Output in Excel:
<b><u><font size='4' color='blue'>File History
Reporting: -
</font></u></b><br /><br
/><b><u><font size='3'>Upload
History</font></u></b><div>
...
Go to the complete details ...