如何在asp.net中只将可见列导出为excel [英] how to export only visible columns to excel in asp.net
本文介绍了如何在asp.net中只将可见列导出为excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友们,
我有一个包含很多列的gridview,其中很少是看不见的。
我只想导出可见的coulmns网格要优秀。
我可以知道我是怎么做到的吗?
提前致谢
Hi friends,
I have a gridview with many columns, of which few are invisible.
I want to export only the visible coulmns of grid to excel .
May i know how cam i do this??
Thanks in advance
推荐答案
我使用了这个 ExporToExcel 实用程序。
它还有一个属性ColumnToExclude,您可以通过该属性排除您不想导出的gridview列。
I used this ExporToExcel utility.
and it also have a property ColumnToExclude by which you can exclude gridview columns that you do'nt want to export.
这篇关于如何在asp.net中只将可见列导出为excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文