在excel列名称中应为粗体
问题描述:
大家好,
我通过连接两个表将网格视图数据导出到excel.
我希望所有excel中的列名都以粗体显示.
请在这方面帮助我.
在此先感谢.
Hi All,
I am exporting the grid view data to excel by joining two tables.
I want all the column names in excel to be displayed in bold format.
Please help me in this regard.
Thanks in Advance.
答
希望 ^ ]可能会为您提供帮助.
Hope this[^] might help you.
尝试此链接
http://www.aspdotnet-suresh. com/2011/04/how-to-export-gridview-data-to-excel-or.html [
try this link
http://www.aspdotnet-suresh.com/2011/04/how-to-export-gridview-data-to-excel-or.html[^]
使用此:
dataGridView1.ColumnHeadersDefaultCellStyle.Font.Bold = true;
&保重身体
& take care body