Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Experts
I have function to export the data directly from gridview to csv and excel file .Now i want to Wrap the Header Column Text...Means iwant the name "Remark comment" as
"Remark
Comment"

How this is done plz help....
Thanks
Posted
Comments
ErBhati 14-Feb-14 5:03am    
Yes I want to Wrap only Header Column Text of excel file

1 solution

What you do is you just use the EPPlus function to wrap said text

C#
ExcelPackage.Workbook.Worksheets["Here"].Cells["A1:A2"].Style.WrapText = "The value you want to wrap";
 
Share this answer
 
Comments
ErBhati 18-Feb-14 7:27am    
not work for me
CBadger 18-Feb-14 8:56am    
What is the problem? How do you get the header text value then?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900