gridview导出数据到excel后显示列和行
大家好,我正在执行一项任务,将 gridview 数据导出到 Excel,这是我使用可用的论坛和文章完成的。
但我想在数据导入到excel后显示完整的excel列
,这意味着期望网格内容占据的位置我想按原样显示excel的其余列。
我们常见的导出正常方式示例如下
我的要求是显示如下
< img src="https://i.sstatic.net/cIROq.jpg" alt="在此处输入图像描述">
我按照此处操作
http:// www.aspsnippets.com/Articles/Export-GridView-To-Word-Excel-PDF-CSV-Formats-in-ASP.Net.aspx
Hi all i am having a task to export gridview data to excel which i have done using the forums and articles available.
But i would like to display complete excel columns
after the data was imported to excel, means expect the place occupied by the grid content i would like to display the remaining columns of the excel as it is.
Sample the normal way of exporting the we do in common is as follows
My requirement is to show as follows
I followed as per here
http://www.aspsnippets.com/Articles/Export-GridView-To-Word-Excel-PDF-CSV-Formats-in-ASP.Net.aspx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看你导出的代码你已经去掉了代码中生成的excel的边框。
See your code to export you have removed the border of the excel generated in the code.
您可以使用以下代码来做到这一点
You can use the following code to do it