将格式化的数据从DataGrid导出到Excel工作表(包括标题)
问题描述:
关于数据没有问题 我只想在Excel工作表中设置我的Datagrid"视图的格式.请关注下划线词...
我正面临同样的问题....要了解有关该问题的更多信息,请单击下面的链接...
http://forums.asp.net/t/1817188.aspx/1 [ ^ ]
There is no Matter About Data i Want just Formatting of My Datagrid view in Excel sheet.Pls Concern the underline words...
I am Facing Same problem....to understand more about the problem pls click belowing Link...
http://forums.asp.net/t/1817188.aspx/1[^]
答
检查我的文章.
将数据表导出为具有C#格式的Excel [ ^ ]
Check my article.
Export DataTable to Excel with Formatting in C#[^]
从gridview逐行读取数据并将文件写入为.csv文件
Read Data from gridview line by line And write file as .csv file